2026-03-04 16:36:49 +01:00
|
|
|
name: sexy
|
2025-10-26 14:48:30 +01:00
|
|
|
services:
|
|
|
|
|
postgres:
|
|
|
|
|
image: postgres:16-alpine
|
2026-03-04 16:36:49 +01:00
|
|
|
container_name: sexy_postgres
|
2025-10-26 14:48:30 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
|
volumes:
|
2026-03-04 16:36:49 +01:00
|
|
|
- postgres_data:/var/lib/postgresql/data
|
2025-10-26 14:48:30 +01:00
|
|
|
environment:
|
2026-03-04 16:36:49 +01:00
|
|
|
POSTGRES_DB: sexy
|
|
|
|
|
POSTGRES_USER: sexy
|
|
|
|
|
POSTGRES_PASSWORD: sexy
|
2025-10-26 14:48:30 +01:00
|
|
|
healthcheck:
|
2026-03-04 16:36:49 +01:00
|
|
|
test: ["CMD-SHELL", "pg_isready -U sexy"]
|
2025-10-26 14:48:30 +01:00
|
|
|
interval: 10s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 5
|
|
|
|
|
redis:
|
|
|
|
|
image: redis:7-alpine
|
2026-03-04 16:36:49 +01:00
|
|
|
container_name: sexy_redis
|
2025-10-26 14:48:30 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
|
volumes:
|
2026-03-04 16:36:49 +01:00
|
|
|
- redis_data:/data
|
2025-10-26 14:48:30 +01:00
|
|
|
command: redis-server --appendonly yes
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
|
|
|
interval: 10s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 5
|
|
|
|
|
directus:
|
2026-03-04 16:36:49 +01:00
|
|
|
image: directus/directus:11
|
|
|
|
|
container_name: sexy_directus
|
2025-10-26 14:48:30 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
|
ports:
|
|
|
|
|
- "8055:8055"
|
|
|
|
|
volumes:
|
2026-03-04 16:36:49 +01:00
|
|
|
- directus_uploads:/directus/uploads
|
|
|
|
|
- ./packages/bundle:/directus/extensions/sexy.pivoine.art
|
2025-10-26 14:48:30 +01:00
|
|
|
environment:
|
|
|
|
|
DB_CLIENT: pg
|
2026-03-04 16:36:49 +01:00
|
|
|
DB_HOST: sexy_postgres
|
|
|
|
|
DB_PORT: 5432
|
|
|
|
|
DB_DATABASE: sexy
|
|
|
|
|
DB_USER: sexy
|
|
|
|
|
DB_PASSWORD: sexy
|
|
|
|
|
ADMIN_EMAIL: admin@sexy
|
|
|
|
|
ADMIN_PASSWORD: admin
|
|
|
|
|
PUBLIC_URL: http://localhost:3000/api
|
|
|
|
|
CACHE_ENABLED: true
|
|
|
|
|
CACHE_AUTO_PURGE: true
|
2025-10-26 14:48:30 +01:00
|
|
|
CACHE_STORE: redis
|
2026-03-04 16:36:49 +01:00
|
|
|
REDIS: redis://sexy_redis:6379
|
|
|
|
|
CORS_ENABLED: true
|
|
|
|
|
CORS_ORIGIN: http://localhost:3000
|
|
|
|
|
SESSION_COOKIE_SECURE: false
|
|
|
|
|
SESSION_COOKIE_SAME_SITE: lax
|
|
|
|
|
SESSION_COOKIE_DOMAIN: localhost
|
|
|
|
|
EXTENSIONS_PATH: /directus/extensions
|
|
|
|
|
EXTENSIONS_AUTO_RELOAD: true
|
|
|
|
|
WEBSOCKETS_ENABLED: true
|
|
|
|
|
USER_REGISTER_URL_ALLOW_LIST: http://localhost:3000
|
|
|
|
|
PASSWORD_RESET_URL_ALLOW_LIST: http://localhost:3000
|
|
|
|
|
TZ: Europe/Amsterdam
|
2025-10-26 14:48:30 +01:00
|
|
|
depends_on:
|
|
|
|
|
postgres:
|
|
|
|
|
condition: service_healthy
|
|
|
|
|
redis:
|
|
|
|
|
condition: service_healthy
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8055/server/health"]
|
|
|
|
|
interval: 30s
|
|
|
|
|
timeout: 10s
|
|
|
|
|
retries: 3
|
|
|
|
|
start_period: 40s
|
|
|
|
|
|
|
|
|
|
volumes:
|
2026-03-04 16:36:49 +01:00
|
|
|
directus_uploads:
|
2025-10-26 14:48:30 +01:00
|
|
|
driver: local
|
2026-03-04 16:36:49 +01:00
|
|
|
postgres_data:
|
2025-10-26 14:48:30 +01:00
|
|
|
driver: local
|
2026-03-04 16:36:49 +01:00
|
|
|
redis_data:
|
2025-10-26 14:48:30 +01:00
|
|
|
driver: local
|