| services: | |
| db: | |
| image: pgvector/pgvector:pg16 | |
| environment: | |
| POSTGRES_DB: pots_shutdown_tracker | |
| POSTGRES_USER: postgres | |
| POSTGRES_PASSWORD: postgres | |
| ports: | |
| - "5432:5432" | |
| volumes: | |
| - postgres_data:/var/lib/postgresql/data | |
| backend: | |
| build: | |
| context: ./backend | |
| env_file: | |
| - .env | |
| environment: | |
| POTS_TRACKER_DB_URL: postgresql+psycopg://postgres:postgres@db:5432/pots_shutdown_tracker | |
| POTS_TRACKER_STORAGE_PATH: /app/storage | |
| POTS_TRACKER_ENABLE_WEEKLY_JOBS: "false" | |
| volumes: | |
| - ./backend/storage:/app/storage | |
| - ./backend:/app | |
| depends_on: | |
| - db | |
| ports: | |
| - "8000:8000" | |
| frontend: | |
| build: | |
| context: ./frontend | |
| environment: | |
| VITE_API_BASE_URL: http://localhost:8000/api/pots-shutdown | |
| volumes: | |
| - ./frontend:/app | |
| - /app/node_modules | |
| depends_on: | |
| - backend | |
| ports: | |
| - "5173:5173" | |
| volumes: | |
| postgres_data: | |