deploy: unify local and server compose stack
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
services:
|
||||
core:
|
||||
environment:
|
||||
# Non-secret settings come from the root .env interpolation file.
|
||||
AUTH_MODE: "${AUTH_MODE:-none}"
|
||||
THT_SECRETS_FILE: /run/secrets/thothii.secrets
|
||||
AUTH_MODE: none
|
||||
THT_WORKSPACE_INSTALLATION_ID: local
|
||||
ports:
|
||||
- "127.0.0.1:${THOTH_CORE_HTTP_PORT:-8787}:8787"
|
||||
restart: "no"
|
||||
|
||||
frontend:
|
||||
ports:
|
||||
- "127.0.0.1:${THOTH_HTTP_PORT:-8080}:8080"
|
||||
restart: "no"
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
services:
|
||||
core:
|
||||
environment:
|
||||
AUTH_MODE: upstream
|
||||
THOTH_PUBLIC_EXPOSURE: "true"
|
||||
THT_DATA_ROOT: /data
|
||||
THT_WORKSPACE_INSTALLATION_ID: server
|
||||
volumes: !override
|
||||
- ${THT_DATA_ROOT:?set THT_DATA_ROOT}:/data
|
||||
- ${THT_PI_STATE_ROOT:?set THT_PI_STATE_ROOT}:/home/thoth/.pi
|
||||
- ${THT_WORKSPACE_REGISTRY_ROOT:?set THT_WORKSPACE_REGISTRY_ROOT}:/data/workspace-registry
|
||||
restart: unless-stopped
|
||||
|
||||
frontend:
|
||||
ports:
|
||||
- "${THOTH_SERVER_BIND:-127.0.0.1}:${THOTH_HTTP_PORT:-8080}:8080"
|
||||
restart: unless-stopped
|
||||
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
# Local profile defaults. Copy this file to an untracked local.env and pass it with --env-file.
|
||||
# Values are non-secret documentation values only.
|
||||
THOTH_HTTP_PORT=8080
|
||||
THOTH_CORE_HTTP_PORT=8787
|
||||
MAX_PI_PROCESSES=4
|
||||
|
||||
THT_WORKSPACE_GIT_REMOTE=https://git.example.invalid/platform/thoth-workspaces.git
|
||||
THT_WORKSPACE_GIT_BRANCH=main
|
||||
THT_WORKSPACE_GIT_AUTHOR_NAME="Thoth Workspace Registry"
|
||||
THT_WORKSPACE_GIT_AUTHOR_EMAIL=thoth-workspace-registry@example.invalid
|
||||
|
||||
THT_DB_NAME=warehouse
|
||||
THT_DWH_REST_URL=https://dwh.example.invalid
|
||||
THT_VEC_REST_URL=https://vector.example.invalid
|
||||
THT_VEC_WRITE_REST_URL=https://vector-write.example.invalid
|
||||
THT_OLLAMA_URL=https://embeddings.example.invalid
|
||||
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
# Server profile defaults. Copy this file to a reviewed, untracked server.env and pass it with --env-file.
|
||||
# Values are non-secret documentation values only.
|
||||
THOTH_SERVER_BIND=127.0.0.1
|
||||
THOTH_HTTP_PORT=8080
|
||||
MAX_PI_PROCESSES=4
|
||||
|
||||
THT_DATA_ROOT=/srv/thothii/data
|
||||
THT_PI_STATE_ROOT=/srv/thothii/pi-state
|
||||
THT_WORKSPACE_REGISTRY_ROOT=/srv/thothii/workspace-registry
|
||||
THT_WORKSPACE_GIT_REMOTE=https://git.example.invalid/platform/thoth-workspaces.git
|
||||
THT_WORKSPACE_GIT_BRANCH=main
|
||||
THT_WORKSPACE_GIT_AUTHOR_NAME="Thoth Workspace Registry"
|
||||
THT_WORKSPACE_GIT_AUTHOR_EMAIL=thoth-workspace-registry@example.invalid
|
||||
|
||||
THT_DB_NAME=warehouse
|
||||
THT_DWH_REST_URL=https://dwh.example.invalid
|
||||
THT_VEC_REST_URL=https://vector.example.invalid
|
||||
THT_VEC_WRITE_REST_URL=https://vector-write.example.invalid
|
||||
THT_OLLAMA_URL=https://embeddings.example.invalid
|
||||
Reference in New Issue
Block a user