Spaces:
Runtime error
Runtime error
File size: 1,585 Bytes
6aa6081 4fa64cd 6aa6081 4fa64cd 6aa6081 4fa64cd 6aa6081 4fa64cd 6aa6081 4fa64cd 6aa6081 4fa64cd 22557a9 6aa6081 22557a9 6aa6081 4fa64cd 6aa6081 4fa64cd 22557a9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: talos
POSTGRES_PASSWORD: talos_demo_2026
POSTGRES_DB: talos_access
volumes:
- talos_pg_data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U talos -d talos_access"]
interval: 5s
timeout: 5s
retries: 10
redis:
image: redis:7-alpine
ports:
- "6379:6379"
backend:
build:
context: ./backend
dockerfile: Dockerfile
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_started
environment:
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
POSTGRES_USER: talos
POSTGRES_PASSWORD: talos_demo_2026
POSTGRES_DB: talos_access
JWT_SECRET_KEY: ${JWT_SECRET_KEY:-dev-only-change-me}
SEED_DEMO: "1"
CORS_ORIGINS: '["*"]'
PHOTO_STORAGE_BACKEND: ${PHOTO_STORAGE_BACKEND:-local}
LOCAL_PHOTO_ROOT: /data/photos
LOCAL_PHOTO_URL_PREFIX: /api/v1/photos
SUPABASE_URL: ${SUPABASE_URL:-}
SUPABASE_SERVICE_KEY: ${SUPABASE_SERVICE_KEY:-}
SUPABASE_PHOTO_BUCKET: ${SUPABASE_PHOTO_BUCKET:-user-photos}
ports:
- "8000:8000"
volumes:
- ./backend:/app
- photo_data:/data/photos
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
depends_on:
- backend
ports:
- "5173:5173"
volumes:
- ./frontend:/app
- /app/node_modules
volumes:
talos_pg_data:
photo_data:
|