init
This commit is contained in:
32
docker-compose.dev.yml
Normal file
32
docker-compose.dev.yml
Normal file
@ -0,0 +1,32 @@
|
||||
version: '3.8'
|
||||
|
||||
# ============================================================
|
||||
# DÉVELOPPEMENT LOCAL — docker compose -f docker/docker-compose.dev.yml up
|
||||
# PocketBase accessible sur http://localhost:8090
|
||||
# Admin PocketBase : http://localhost:8090/_/
|
||||
# ============================================================
|
||||
|
||||
services:
|
||||
|
||||
pocketbase:
|
||||
image: ghcr.io/muchobien/pocketbase:latest
|
||||
container_name: mb-pocketbase-dev
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8090:8090" # Accès direct sans Nginx en dev
|
||||
volumes:
|
||||
# Données locales (dans .gitignore)
|
||||
- ../pocketbase/pb_data:/pb/pb_data
|
||||
# Hooks JS versionnés dans Git ✅
|
||||
- ../pocketbase/pb_hooks:/pb/pb_hooks
|
||||
# Migrations versionnées dans Git ✅
|
||||
- ../pocketbase/pb_migrations:/pb/pb_migrations
|
||||
env_file:
|
||||
- ../.env.local # Clé Anthropic en local
|
||||
environment:
|
||||
- TZ=Europe/Paris
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8090/api/health"]
|
||||
interval: 15s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
Reference in New Issue
Block a user