services: web: build: context: ./web dockerfile: Dockerfile ports: - "8000:8000" env_file: ./web/.env environment: - DATABASE_URL=postgresql+asyncpg://myst:myst@db:5432/myst_db depends_on: db: condition: service_healthy db: image: postgres:16-alpine ports: - "5432:5432" environment: POSTGRES_USER: myst POSTGRES_PASSWORD: myst POSTGRES_DB: myst_db volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U myst -d myst_db"] interval: 5s timeout: 5s retries: 5 adminer: image: adminer:latest ports: - "8080:8080" depends_on: db: condition: service_healthy volumes: postgres_data: