Files
sillytavern-repalice/docker-compose.prod.yml
2026-04-26 03:34:47 +08:00

41 lines
926 B
YAML

# Production Docker Compose - 使用预构建镜像
# 用户无需构建,直接拉取镜像即可运行
services:
# Backend Service
backend:
image: yourusername/sillytavern-repalice-backend:latest
container_name: sillytavern-repalice-backend
ports:
- "3000:3000"
volumes:
- ./data:/app/data
environment:
- NODE_ENV=production
- PORT=3000
- DATA_DIR=/app/data
- FRONTEND_URL=http://localhost:5173
env_file:
- .env
networks:
- app-network
restart: unless-stopped
# Frontend Service
frontend:
image: yourusername/sillytavern-repalice-frontend:latest
container_name: sillytavern-repalice-frontend
ports:
- "23337:80"
environment:
- VITE_API_URL=http://localhost:3000/api
depends_on:
- backend
networks:
- app-network
restart: unless-stopped
networks:
app-network:
driver: bridge