version: '3.8' services: postgres: image: postgres:14 environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: carousify ports: - "5432:5432" volumes: - postgres_data:/var/lib/postgresql/data backend: build: context: ./backend dockerfile: Dockerfile ports: - "8000:8000" environment: DATABASE_URL: postgresql://postgres:postgres@postgres:5432/carousify SECRET_KEY: ${SECRET_KEY:-your-secret-key-change-in-production} depends_on: - postgres volumes: - ./backend:/app web: build: context: ./web dockerfile: Dockerfile ports: - "3000:3000" environment: NEXT_PUBLIC_API_URL: http://localhost:8000 depends_on: - backend volumes: postgres_data: