47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
name: thothii
|
|
|
|
services:
|
|
core:
|
|
profiles: [external]
|
|
build:
|
|
context: .
|
|
dockerfile: docker/core.Dockerfile
|
|
environment:
|
|
AUTH_MODE: "${AUTH_MODE:-none}"
|
|
THOTH_PUBLIC_EXPOSURE: "${THOTH_PUBLIC_EXPOSURE:-false}"
|
|
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:
|
|
- "127.0.0.1:${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:
|