version: "3.9" services: postgres: image: postgres:16-alpine container_name: vaikkal_postgres environment: POSTGRES_USER: vaikkal POSTGRES_PASSWORD: vaikkal_dev_password POSTGRES_DB: vaikkal ports: - "5432:5432" volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U vaikkal"] interval: 10s timeout: 5s retries: 5 redis: image: redis:7-alpine container_name: vaikkal_redis ports: - "6379:6379" volumes: - redis_data:/data healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 10s timeout: 5s retries: 5 backend: build: ./backend container_name: vaikkal_backend depends_on: postgres: condition: service_healthy redis: condition: service_healthy environment: DATABASE_URL: postgresql+asyncpg://vaikkal:vaikkal_dev_password@postgres:5432/vaikkal REDIS_URL: redis://redis:6379/0 SECRET_KEY: ${SECRET_KEY:-change-me-in-production} JWT_ALGORITHM: HS256 ACCESS_TOKEN_EXPIRE_MINUTES: 60 REFRESH_TOKEN_EXPIRE_DAYS: 7 DEMO_MODE: "true" ports: - "8000:8000" command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload volumes: - ./backend:/app healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8000/health"] interval: 30s timeout: 10s retries: 3 frontend: build: ./frontend container_name: vaikkal_frontend depends_on: - backend environment: NEXT_PUBLIC_API_URL: http://localhost:8000/api API_URL: http://localhost:8000/api ports: - "3000:3000" volumes: - ./frontend:/app - /app/node_modules - /app/.next command: npm run dev volumes: postgres_data: redis_data: