-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathcompose.base.yaml
More file actions
45 lines (44 loc) · 1.43 KB
/
compose.base.yaml
File metadata and controls
45 lines (44 loc) · 1.43 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
services:
frontend:
image: ghcr.io/scicatproject/frontend:v5.9.0
depends_on:
backend:
condition: service_healthy
configs:
- source: entrypoints_merge_json_sh
target: /post_start/merge_json.sh
mode: 0555
- source: frontend_config_json
target: /config/config.0.json
- source: frontend_config_oidc_json
target: /config/${OIDC_ENABLED:-.}config.1.json
- source: frontend_config_ldap_json
target: /config/${LDAP_ENABLED:-.}config.2.json
- source: frontend_config_jobs_json
target: /config/${JOBS_ENABLED:-.}config.3.json
labels:
- traefik.http.routers.frontend.rule=Host(`localhost`)
# Adding a label for traefik to learn which port to look for a service on
- traefik.http.services.frontend.loadbalancer.server.port=8080
healthcheck:
test: curl -f 'http://127.0.0.1:8080'
start_period: 5s
interval: 30s
timeout: 10s
retries: 5
restart: on-failure
environment:
CONFIG_FILE: config.override.json
BACKEND_URL: ${BACKEND_HTTPS_URL:-http://backend.localhost}
post_start:
- command: /post_start/merge_json.sh
user: root
configs:
frontend_config_json:
file: ./config/config.json
frontend_config_oidc_json:
file: ./config/config.oidc.json
frontend_config_ldap_json:
file: ./config/config.ldap.json
frontend_config_jobs_json:
file: ./config/config.jobs.json