services: db: image: postgres:17-alpine container_name: rustification-postgres env_file: - ./.env ports: - '5432:5432' volumes: - postgresDb:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"] interval: 5s timeout: 5s retries: 5 server: build: . container_name: rustification-server env_file: - ./.env environment: DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB} ports: - '3000:3000' depends_on: db: condition: service_healthy volumes: postgresDb: