mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-19 14:16:29 +00:00
86 lines
2.1 KiB
YAML
86 lines
2.1 KiB
YAML
services:
|
|
# --- Shumai Application Services ---
|
|
postgres:
|
|
image: pgvector/pgvector:pg18
|
|
container_name: shumai_postgres
|
|
environment:
|
|
POSTGRES_USER: shumai
|
|
POSTGRES_PASSWORD: shumai_password
|
|
POSTGRES_DB: shumai_db
|
|
ports:
|
|
- '5432:5432'
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql
|
|
healthcheck:
|
|
test: ['CMD-SHELL', 'pg_isready -U shumai -d shumai_db']
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
shumai:
|
|
image: shumaione/shumai:latest
|
|
container_name: shumai_app
|
|
ports:
|
|
- '3000:3000'
|
|
volumes:
|
|
- shumai_data:/app/data
|
|
environment:
|
|
DATABASE_URL: postgres://shumai:shumai_password@postgres:5432/shumai_db?search_path=public&sslmode=disable
|
|
STORAGE_BACKEND: s3
|
|
AWS_ENDPOINT_URL_S3: S3_ENDPOINT_URL
|
|
S3_REGION: S3_REGION
|
|
S3_BUCKET: BUCKET_NAME
|
|
S3_ACCESS_KEY_ID: ID
|
|
S3_SECRET_ACCESS_KEY: KEY
|
|
BETTER_AUTH_SECRET: qSxs9DxzHDZBbeeTNPEwBuspYwipBqz5Gk5XdBjNhWw=
|
|
WORKFLOW_EXECUTOR: temporal
|
|
TEMPORAL_ADDRESS: temporal:7233
|
|
GEMINI_API_KEY: KEY
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
temporal:
|
|
condition: service_healthy
|
|
|
|
# --- Temporal Services ---
|
|
temporal:
|
|
image: temporalio/auto-setup:latest
|
|
container_name: temporal_server
|
|
environment:
|
|
- DB=postgres12
|
|
- DB_PORT=5432
|
|
- POSTGRES_USER=shumai
|
|
- POSTGRES_PWD=shumai_password
|
|
- POSTGRES_SEEDS=postgres
|
|
- BIND_ON_IP=0.0.0.0
|
|
ports:
|
|
- '7233:7233'
|
|
healthcheck:
|
|
test:
|
|
[
|
|
'CMD-SHELL',
|
|
'temporal operator cluster health --address localhost:7233 || temporal operator cluster health --address $$(hostname -i):7233',
|
|
]
|
|
interval: 5s
|
|
timeout: 5s
|
|
start_period: 30s
|
|
retries: 10
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
|
|
temporal-ui:
|
|
image: temporalio/ui:latest
|
|
container_name: temporal_ui
|
|
environment:
|
|
- TEMPORAL_ADDRESS=temporal:7233
|
|
ports:
|
|
- '8080:8080'
|
|
depends_on:
|
|
temporal:
|
|
condition: service_healthy
|
|
|
|
volumes:
|
|
postgres_data:
|
|
shumai_data:
|