services: database: env_file: .env healthcheck: test: ["CMD", "pg_isready", "--host=localhost", "--username=${POSTGRES_USER}", "--dbname=${POSTGRES_DB}"] interval: 10s timeout: 5s retries: 5 start_interval: 5s start_period: 30s image: postgis/postgis:13-master # platform: linux/amd64 # Required when running on platform other than amd64, like Apple M1/M2: volumes: - db:/var/lib/postgresql/data # pgadmin4: # container_name: pgadmin4 # depends_on: # - database # env_file: .env # image: docker.io/dpage/pgadmin4:8.14 # ports: # - 5050:80 # restart: unless-stopped cache: healthcheck: test: ["CMD-SHELL", "[ $$(redis-cli ping) = 'PONG' ]"] interval: 10s timeout: 5s retries: 5 start_interval: 5s start_period: 30s image: redis:6 directus: depends_on: database: condition: service_healthy cache: condition: service_healthy env_file: .env image: directus/directus:11.5.1 ports: - 8055:8055 volumes: - ./uploads:/directus/uploads - ./extensions:/directus/extensions volumes: db: