integration: full compose (api+worker+frontend) + README

This commit is contained in:
drjones
2026-08-25 20:42:05 -07:00
parent 96b4fcaac9
commit e1addcc956
2 changed files with 104 additions and 0 deletions

View File

@@ -26,5 +26,44 @@ services:
timeout: 3s
retries: 10
api:
build: ./backend
environment:
DATABASE_URL: postgresql+psycopg2://reseller:${POSTGRES_PASSWORD}@postgres:5432/reseller
REDIS_URL: redis://redis:6379/0
SECRET_KEY: ${SECRET_KEY:-polaris-dev-secret-change-me}
ADMIN_EMAIL: ${ADMIN_EMAIL:-admin@polaris.local}
ADMIN_PASSWORD: ${ADMIN_PASSWORD:-changeme}
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
expose:
- "8000"
restart: unless-stopped
worker:
build: ./backend
command: celery -A app.tasks.celery_app worker --loglevel=info -B
environment:
DATABASE_URL: postgresql+psycopg2://reseller:${POSTGRES_PASSWORD}@postgres:5432/reseller
REDIS_URL: redis://redis:6379/0
SECRET_KEY: ${SECRET_KEY:-polaris-dev-secret-change-me}
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
restart: unless-stopped
frontend:
build: ./frontend
ports:
- "80:80"
depends_on:
- api
restart: unless-stopped
volumes:
pgdata: