services: frontend: build: context: ./frontend dockerfile: Dockerfile ports: - "3001:3000" backend: build: context: ./backend dockerfile: Dockerfile ports: - "3002:3001" env_file: - .env.development depends_on: postgres: condition: service_healthy postgres: image: postgres:16-alpine restart: always env_file: - .env.development ports: - "5432:5432" volumes: - pgdata:/var/lib/postgresql/data - ./database/init:/docker-entrypoint-initdb.d healthcheck: test: ["CMD-SHELL", "pg_isready -U ${DB_USER} -d ${DB_NAME}"] interval: 5s timeout: 5s retries: 5 volumes: pgdata: