33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
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
|