--- services: web: build: . depends_on: db: condition: service_healthy volumes: [static_volume:/app/static, media_volume:/app/media] networks: [frontend, backend] db: image: postgres:18 environment: POSTGRES_DB: ${POSTGRES_DBNAME} POSTGRES_USER: ${POSTGRES_USER} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} volumes: [postgres_data:/var/lib/postgresql] healthcheck: test: [CMD-SHELL, 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DBNAME}'] interval: 5s retries: 5 networks: [backend] proxy: image: nginx:stable volumes: - ./.nginx/.templates:/etc/nginx/templates - static_volume:/app/static:ro - media_volume:/app/media:ro depends_on: [web] networks: [frontend] adminer: image: adminer depends_on: [db] ports: [127.0.0.1:8080:8080] networks: [backend] networks: frontend: backend: internal: true volumes: postgres_data: static_volume: media_volume: