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

46 lines
935 B
YAML

services:
# Backend Service
backend:
build:
context: .
dockerfile: docker/backend.Dockerfile
args:
- BUILDKIT_INLINE_CACHE=1
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:
build:
context: .
dockerfile: docker/frontend.Dockerfile
args:
- BUILDKIT_INLINE_CACHE=1
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