forked from onnovalkering/brane
-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose-worker.yml
90 lines (80 loc) · 2.38 KB
/
docker-compose-worker.yml
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
80
81
82
83
84
85
86
87
88
89
90
version: '3.6'
services:
###############
## AUXILLARY ##
###############
# Nothing yet
###########
## BRANE ##
###########
# "Proxy" service that can be targeted by local connections to be proxied (and encrypted with client auth) to remote hosts.
brane-prx:
image: brane-prx:${BRANE_VERSION:-latest}
container_name: ${PRX_NAME:-brane-prx}
command: --debug
restart: always
volumes:
- ${NODE_CONFIG_PATH}:/node.yml
- ${PROXY:-}:${PROXY:-}
- ${CERTS}:${CERTS}
extra_hosts:
- host.docker.internal:host-gateway
# The service in charge of policy
brane-chk:
image: brane-chk:${BRANE_VERSION:-latest}
init: true
container_name: ${CHK_NAME:-brane-chk}
command: -s "node-file-path=/node.yml"
ports:
- "0.0.0.0:${CHK_PORT}:${CHK_PORT}"
restart: always
environment:
- ADDRESS=0.0.0.0:${CHK_PORT}
volumes:
- ${NODE_CONFIG_PATH}:/node.yml
- ${POLICY_DB}:/data/policy.db
- ${POLICY_DELIBERATION_SECRET}:/examples/config/jwk_set_delib.json
- ${POLICY_EXPERT_SECRET}:/examples/config/jwk_set_expert.json
extra_hosts:
- host.docker.internal:host-gateway
# The service in charge of the local container- and data registry
brane-reg:
image: brane-reg:${BRANE_VERSION:-latest}
container_name: ${REG_NAME:-brane-reg}
command: --debug
ports:
- "0.0.0.0:${REG_PORT}:${REG_PORT}"
restart: always
volumes:
- ${NODE_CONFIG_PATH}:/node.yml
- ${BACKEND}:${BACKEND}
- ${CERTS}:${CERTS}
- ${POLICY_DELIBERATION_SECRET}:${POLICY_DELIBERATION_SECRET}
- ${DATA}:${DATA}
- ${RESULTS}:${RESULTS}
extra_hosts:
- host.docker.internal:host-gateway
# The service that is the 'main' service on the worker.
brane-job:
image: brane-job:${BRANE_VERSION:-latest}
container_name: ${JOB_NAME:-brane-job}
command: --debug
ports:
- "0.0.0.0:${JOB_PORT}:${JOB_PORT}"
restart: always
volumes:
- ${NODE_CONFIG_PATH}:/node.yml
- ${BACKEND}:${BACKEND}
- ${CERTS}:${CERTS}
- ${POLICY_DELIBERATION_SECRET}:${POLICY_DELIBERATION_SECRET}
- ${PACKAGES}:${PACKAGES}
- ${DATA}:${DATA}
- ${RESULTS}:${RESULTS}
- ${TEMP_DATA}:${TEMP_DATA}
- ${TEMP_RESULTS}:${TEMP_RESULTS}
- /var/run/docker.sock:/var/run/docker.sock
extra_hosts:
- host.docker.internal:host-gateway
networks:
default:
name: brane-worker-${LOCATION_ID}