# Local full-stack build. Runs the API + both frontends on your machine: # docker compose up --build # API on :3000, worker on :5173, admin on :5174 (matching the Vite dev ports). # For the server deployment see docker-compose.prod.yml. services: api: build: context: . dockerfile: apps/api/Dockerfile ports: - '3000:3000' environment: DATABASE_URL: file:/data/app.db BETTER_AUTH_SECRET: ${BETTER_AUTH_SECRET:-change-me-to-a-long-random-string} BETTER_AUTH_URL: http://localhost:3000 CORS_ORIGINS: http://localhost:5173,http://localhost:5174 PORT: '3000' volumes: - solelog_db:/data worker: build: context: . dockerfile: apps/worker/Dockerfile args: VITE_API_URL: http://localhost:3000 ports: - '5173:80' depends_on: - api admin: build: context: . dockerfile: apps/admin/Dockerfile args: VITE_API_URL: http://localhost:3000 ports: - '5174:80' depends_on: - api volumes: solelog_db: