Files
ThothII/compose.yaml
T

48 lines
1.0 KiB
YAML

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: