Files
xiaoxia-saas/infra/docker/compose.yml
T
Xiaoxia AI 6eb394d6ad
Deploy / Deploy Staging (push) Failing after 4m8s
Deploy / Deploy Production (push) Has been skipped
Tests / lint (push) Has been cancelled
Tests / test (push) Has been cancelled
feat: add deployment configs, systemd service, and tracker init scripts
2026-06-16 22:01:24 +08:00

60 lines
1.3 KiB
YAML

services:
web:
image: ${WEB_IMAGE:-xiaoxia-saas-web:dev}
build:
context: ../..
dockerfile: infra/docker/web.Dockerfile
environment:
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-http://localhost:8000}
ports:
- "${WEB_PORT:-3000}:3000"
depends_on:
- api
api:
image: ${API_IMAGE:-xiaoxia-saas-api:dev}
build:
context: ../..
dockerfile: infra/docker/api.Dockerfile
env_file:
- ../../.env
environment:
APP_ENV: ${APP_ENV:-development}
ports:
- "${API_PORT:-8000}:8000"
depends_on:
- postgres
- redis
worker:
image: ${WORKER_IMAGE:-xiaoxia-saas-worker:dev}
build:
context: ../..
dockerfile: infra/docker/worker.Dockerfile
env_file:
- ../../.env
environment:
APP_ENV: ${APP_ENV:-development}
depends_on:
- redis
- postgres
postgres:
image: postgres:16
environment:
POSTGRES_DB: ${POSTGRES_DB:-xiaoxia_saas}
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:7
ports:
- "${REDIS_PORT:-6379}:6379"
volumes:
postgres_data: