forked from helixml/helix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
80 lines (77 loc) · 2.64 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
80 lines (77 loc) · 2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: '3'
services:
api:
image: europe-docker.pkg.dev/helixml/helix/controlplane:latest
# If you want to run the API on a different port, set the
# API_PORT environment variable and also updated env variables
# for SERVER_URL and KEYCLOAK_FRONTEND_URL to match how you
# connect to Helix
ports:
- ${API_PORT:-80}:80
restart: always
env_file:
- .env
environment:
- LOG_LEVEL=debug
- APP_URL=${SERVER_URL:-http://localhost}
- POSTGRES_HOST=postgres
- POSTGRES_DATABASE=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=${POSTGRES_ADMIN_PASSWORD-postgres}
- TOGETHER_API_KEY=${TOGETHER_API_KEY:-}
- RUNNER_TOKEN=${RUNNER_TOKEN-oh-hallo-insecure-token}
- SERVER_URL=${SERVER_URL:-http://localhost}
- KEYCLOAK_URL=http://keycloak:8080/auth
# this is an insecure development key do not use!
- KEYCLOAK_TOKEN=5ca0fc03-d625-456e-bca7-8e732309165f
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=${KEYCLOAK_ADMIN_PASSWORD-oh-hallo-insecure-password}
# lock down dashboard in production
- ADMIN_USER_IDS=${ADMIN_USER_IDS-all}
- EVAL_USER_ID=${EVAL_USER_ID:-}
- TEXT_EXTRACTION_URL=http://unstructured:5000/api/v1/extract
- FILESTORE_LOCALFS_PATH=/filestore
volumes:
- ${FILESTORE_DATA:-helix-filestore}:/filestore
depends_on:
- postgres
- keycloak
postgres:
image: postgres:12.13-alpine
restart: always
ports:
- 5432:5432
volumes:
- ${POSTGRES_DATA:-helix-postgres-db}:/var/lib/postgresql/data
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=${POSTGRES_ADMIN_PASSWORD-postgres}
keycloak:
image: quay.io/modeldynamics/keycloak:15.0.2-helix
restart: always
environment:
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=${KEYCLOAK_ADMIN_PASSWORD-oh-hallo-insecure-password}
- KC_PROXY=edge
- DB_VENDOR=h2
- KEYCLOAK_IMPORT=/imported/realm.json -Dkeycloak.profile.feature.upload_scripts=enabled -Dkeycloak.profile=preview
- KEYCLOAK_FRONTEND_URL=${KEYCLOAK_FRONTEND_URL:-http://localhost/auth/}
volumes:
- ./realm.json:/imported/realm.json
- ${KEYCLOAK_DATA:-helix-keycloak-db}:/opt/jboss/keycloak/standalone/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
interval: 10s
timeout: 10s
retries: 3
start_period: 5s
unstructured:
image: europe-docker.pkg.dev/helixml/helix/unstructured:latest
# ports:
# - 5000:5000
restart: always
volumes:
helix-keycloak-db:
helix-postgres-db:
helix-filestore: