services: db: image: postgres:16-alpine restart: unless-stopped environment: POSTGRES_USER: dreamweaver POSTGRES_PASSWORD: dreamweaver POSTGRES_DB: dreamweaver ports: - "5432:5432" volumes: - dreamweaver_pgdata:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U dreamweaver"] interval: 5s timeout: 5s retries: 10 backend: build: ./backend restart: unless-stopped env_file: - ./backend/.env environment: DATABASE_URL: postgresql+psycopg2://dreamweaver:dreamweaver@db:5432/dreamweaver ports: - "8000:8000" depends_on: db: condition: service_healthy healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8000/health"] interval: 15s timeout: 5s retries: 5 frontend: build: context: ./frontend args: VITE_API_BASE_URL: http://localhost:8000/api restart: unless-stopped ports: - "5173:5173" depends_on: - backend volumes: dreamweaver_pgdata: