Files
shumai/docker-compose/local/docker-compose.yaml
T

54 lines
1.3 KiB
YAML
Raw Normal View History

2026-05-19 16:05:09 +08:00
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/18/docker
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U shumai -d shumai_db']
interval: 5s
timeout: 5s
retries: 5
shumai:
image: shumaione/shumai:latest
2026-07-28 16:29:23 +08:00
cap_add:
- SYS_ADMIN
2026-07-28 15:47:03 +08:00
security_opt:
2026-07-28 16:29:23 +08:00
- apparmor=unconfined
2026-07-28 15:47:03 +08:00
- seccomp=unconfined
2026-05-19 16:05:09 +08:00
container_name: shumai_app
ports:
- '3000:3000'
volumes:
- ./data:/app/data
2026-05-19 16:05:09 +08:00
environment:
# Database Configuration
DATABASE_URL: postgres://shumai:shumai_password@shumai_postgres:5432/shumai_db?search_path=public&sslmode=disable
# Server Configuration
SHUMAI_SERVER_PORT: 3000
2026-05-19 16:05:09 +08:00
# S3 Configuration
STORAGE_BACKEND: local
AWS_ENDPOINT_URL_S3: http://localhost:3000
2026-05-19 16:05:09 +08:00
# Better Auth
BETTER_AUTH_SECRET: qSxs9DxzHDZBbeeTNPEwBuspYwipBqz5Gk5XdBjNhWw=
# Sandbox Configuration
ENABLE_WEAKER_NESTED_SANDBOX: 'true'
2026-05-19 16:05:09 +08:00
depends_on:
postgres:
condition: service_healthy
volumes:
postgres_data: