version: '3.9' services: web: build: . command: uvicorn app.main:app --host 0.0.0.0 --port 8000 volumes: - .:/code ports: - "8000:8000" environment: - DATABASE_URL=postgresql://postgres:postgres@db:5432/oceannexus - REDIS_URL=redis://redis:6379/0 - SECRET_KEY=supersecretkey123 - FRONTEND_URL=http://localhost - SMTP_HOST=smtp.example.com - SMTP_PORT=587 - SMTP_USER= - SMTP_PASSWORD= depends_on: - db - redis db: image: postgres:15 restart: always environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: oceannexus volumes: - db_data:/var/lib/postgresql/data redis: image: redis:7 restart: always ports: - "6379:6379" nginx: image: nginx:stable ports: - "80:80" volumes: - ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro depends_on: - web volumes: db_data: