Simplify and validate Docker deployment

This commit is contained in:
2026-07-13 01:53:09 +08:00
parent b98c519e27
commit e8c791dcde
3 changed files with 28 additions and 34 deletions
+3 -19
View File
@@ -1,12 +1,9 @@
services:
preface-tools:
build:
context: .
build: .
image: preface-tools:local
restart: unless-stopped
init: true
env_file:
- .env
env_file: .env
environment:
APP_ENV: production
HTTP_ADDRESS: :8080
@@ -14,23 +11,10 @@ services:
COMIC_ANIMATOR_UPLOAD_DIR: /app/data/comic-animator/uploads
COMIC_ANIMATOR_OUTPUT_DIR: /app/data/comic-animator/outputs
ports:
- "127.0.0.1:8080:8080"
- "8080:8080"
volumes:
- preface-data:/app/data
- ./prompts:/app/prompts:ro
read_only: true
tmpfs:
- /tmp:size=64m,mode=1777
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
healthcheck:
test: ["CMD", "/usr/local/bin/healthcheck", "http://127.0.0.1:8080/readyz"]
interval: 30s
timeout: 3s
start_period: 10s
retries: 3
volumes:
preface-data: