2024-02-20 14:07:12 +00:00
|
|
|
# documentation: https://directus.io
|
2024-02-21 13:30:32 +00:00
|
|
|
# slogan: Directus wraps databases with a dynamic API, and provides an intuitive app for managing its content.
|
2023-11-09 10:52:51 +00:00
|
|
|
# tags: directus, cms, database, sql
|
2024-02-20 14:07:12 +00:00
|
|
|
# logo: svgs/directus.svg
|
2024-03-12 14:09:24 +00:00
|
|
|
# port: 8055
|
2023-11-09 10:52:51 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
directus:
|
2024-02-14 13:59:38 +00:00
|
|
|
image: directus/directus:10
|
2023-11-09 10:52:51 +00:00
|
|
|
volumes:
|
|
|
|
- directus-uploads:/directus/uploads
|
|
|
|
- directus-extensions:/directus/extensions
|
|
|
|
environment:
|
2024-03-12 14:09:24 +00:00
|
|
|
- SERVICE_FQDN_DIRECTUS_8055
|
2023-11-09 10:52:51 +00:00
|
|
|
- KEY=$SERVICE_BASE64_64_KEY
|
|
|
|
- SECRET=$SERVICE_BASE64_64_SECRET
|
|
|
|
- ADMIN_EMAIL=${ADMIN_EMAIL:-admin@example.com}
|
|
|
|
- ADMIN_PASSWORD=$SERVICE_PASSWORD_ADMIN
|
|
|
|
- DB_CLIENT=postgres
|
|
|
|
- DB_HOST=postgresql
|
|
|
|
- DB_PORT=5432
|
|
|
|
- DB_DATABASE=${POSTGRESQL_DATABASE:-directus}
|
|
|
|
- DB_USER=$SERVICE_USER_POSTGRESQL
|
|
|
|
- DB_PASSWORD=$SERVICE_PASSWORD_POSTGRESQL
|
|
|
|
- REDIS_HOST=redis
|
|
|
|
- REDIS_PORT=6379
|
|
|
|
- WEBSOCKETS_ENABLED=true
|
2024-04-16 12:08:11 +00:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "wget", "-q", "--spider", "http://localhost:8055/admin/login"]
|
|
|
|
interval: 5s
|
|
|
|
timeout: 20s
|
|
|
|
retries: 10
|
|
|
|
depends_on:
|
|
|
|
postgresql:
|
|
|
|
condition: service_healthy
|
|
|
|
redis:
|
|
|
|
condition: service_healthy
|
2023-11-09 10:52:51 +00:00
|
|
|
postgresql:
|
2023-11-30 11:21:21 +00:00
|
|
|
image: postgres:16-alpine
|
2023-11-09 10:52:51 +00:00
|
|
|
volumes:
|
|
|
|
- directus-postgresql-data:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=${SERVICE_USER_POSTGRESQL}
|
|
|
|
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRESQL}
|
|
|
|
- POSTGRES_DB=${POSTGRESQL_DATABASE:-directus}
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
|
|
|
interval: 5s
|
|
|
|
timeout: 20s
|
|
|
|
retries: 10
|
|
|
|
redis:
|
2023-11-13 14:19:49 +00:00
|
|
|
image: redis:7-alpine
|
2023-11-09 10:52:51 +00:00
|
|
|
command: redis-server --appendonly yes
|
|
|
|
volumes:
|
|
|
|
- directus-redis-data:/data
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
|
|
interval: 5s
|
|
|
|
timeout: 20s
|
|
|
|
retries: 10
|