feat(deploy): add portable external-service stack

This commit is contained in:
2026-07-11 22:12:21 +02:00
parent 715de6649b
commit 767df63a33
7 changed files with 265 additions and 1 deletions
+47
View File
@@ -0,0 +1,47 @@
name: thothii
services:
core:
profiles: [external]
build:
context: .
dockerfile: docker/core.Dockerfile
env_file:
- path: deploy/.env
required: false
environment:
THT_DATA_ROOT: /data
SETTINGS_FILE: /data/settings/settings.json
volumes:
- thoth_data:/data
- ./deploy/workspaces:/app/harness/workspaces:ro
healthcheck:
test: [CMD, curl, --fail, --silent, http://127.0.0.1:8787/health]
interval: 5s
timeout: 3s
retries: 12
start_period: 10s
restart: unless-stopped
frontend:
profiles: [external]
build:
context: .
dockerfile: docker/frontend.Dockerfile
environment:
BACKEND_BASE_URL: /api
ports:
- "${THOTH_HTTP_PORT:-8080}:8080"
depends_on:
core:
condition: service_healthy
healthcheck:
test: [CMD, wget, --quiet, --spider, http://127.0.0.1:8080/health]
interval: 5s
timeout: 3s
retries: 12
start_period: 5s
restart: unless-stopped
volumes:
thoth_data: