Files
ThothII/compose.yaml
T

58 lines
1.3 KiB
YAML

name: thothii
x-smoke-labels: &smoke-labels
io.thothii.smoke-owner: "${THOTH_SMOKE_OWNER:-operator}"
services:
core:
image: thothii-core:local
profiles: [external]
build:
context: .
dockerfile: docker/core.Dockerfile
labels: *smoke-labels
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
labels: *smoke-labels
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:
labels: *smoke-labels
networks:
default:
labels: *smoke-labels