2021-10-08 12:30:49 +02:00
|
|
|
---
|
2021-12-31 13:48:56 +01:00
|
|
|
|
2021-10-08 12:30:49 +02:00
|
|
|
volumes:
|
|
|
|
directus:
|
|
|
|
name: ${DIRECTUS_VOLUME_NAME:-directus}
|
|
|
|
|
|
|
|
services:
|
|
|
|
directus:
|
|
|
|
container_name: ${DIRECTUS_CONTAINER_NAME:-directus}
|
2022-04-13 22:56:15 +02:00
|
|
|
image: ${DIRECTUS_IMAGE:-directus/directus:9.8.0}
|
2021-10-08 12:30:49 +02:00
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- directus:/directus/uploads
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
- redis
|
|
|
|
environment:
|
|
|
|
KEY: ${DIRECTUS_KEY:?err}
|
|
|
|
SECRET: ${DIRECTUS_SECRET:?err}
|
|
|
|
TELEMETRY: false
|
|
|
|
|
|
|
|
ADMIN_EMAIL: ${DIRECTUS_ADMIN_EMAIL:?err}
|
|
|
|
ADMIN_PASSWORD: ${DIRECTUS_ADMIN_PASSWORD:?err}
|
|
|
|
PUBLIC_URL: ${DIRECTUS_PUBLIC_URL:?err}
|
2023-07-18 16:32:30 +02:00
|
|
|
CORS_ENABLED: ${DIRECTUS_CORS_ENABLED:-false}
|
|
|
|
CORS_ORIGIN: ${DIRECTUS_CORS_ORIGIN:-false}
|
2021-10-08 12:30:49 +02:00
|
|
|
|
|
|
|
DB_CLIENT: 'pg'
|
2022-01-26 11:09:23 +01:00
|
|
|
DB_HOST: ${POSTGRES_CONTAINER_NAME:-postgres} # Default name is same as ../postgres/docker-compose.yml:8
|
2021-10-08 12:30:49 +02:00
|
|
|
DB_PORT: '5432'
|
|
|
|
DB_DATABASE: ${POSTGRES_DB:?err}
|
|
|
|
DB_USER: ${POSTGRES_USER:?err}
|
|
|
|
DB_PASSWORD: ${POSTGRES_PASSWORD:?err}
|
|
|
|
|
2022-03-07 11:51:21 +01:00
|
|
|
TZ: ${TZ:-Europe/Paris}
|
|
|
|
|
2021-10-08 12:30:49 +02:00
|
|
|
PUID: ${DIRECTUS_PUID:-1000}
|
|
|
|
PGID: ${DIRECTUS_PGID:-1000}
|