forked from epi-project/brane
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-central.yml
111 lines (100 loc) · 2.74 KB
/
docker-compose-central.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
version: '3.6'
services:
###############
## AUXILLARY ##
###############
# Database that contains package metadata
aux-scylla:
image: aux-scylla:${BRANE_VERSION:-latest}
# ports:
# - "127.0.0.1:9042:9042"
command: --smp 1
restart: always
labels:
- kompose.service.type=nodeport
- kompose.service.nodeport.port=9042
###########
## 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 package registry, downloading, uploading, etc
brane-api:
image: brane-api:${BRANE_VERSION:-latest}
container_name: ${API_NAME:-brane-api}
command: --debug
restart: always
ports:
- "0.0.0.0:${API_PORT}:${API_PORT}"
volumes:
- ${NODE_CONFIG_PATH}:/node.yml
- ${INFRA}:${INFRA}
- ${CERTS}:${CERTS}
- ${PACKAGES}:${PACKAGES}
depends_on:
- aux-scylla
- brane-prx
# - aux-registry
labels:
- kompose.service.type=nodeport
- kompose.service.nodeport.port=50051
extra_hosts:
- host.docker.internal:host-gateway
# The service that accepts client connections and executes workflow control flow
brane-drv:
image: brane-drv:${BRANE_VERSION:-latest}
container_name: ${DRV_NAME:-brane-drv}
command: --debug
restart: always
ports:
- "0.0.0.0:${DRV_PORT}:${DRV_PORT}"
volumes:
- ${NODE_CONFIG_PATH}:/node.yml
- ${INFRA}:${INFRA}
depends_on:
- brane-prx
- brane-api
labels:
- kompose.service.type=nodeport
- kompose.service.nodeport.port=50053
extra_hosts:
- host.docker.internal:host-gateway
# # The service logging everything
# brane-log:
# image: brane-log:${BRANE_VERSION:-latest}
# container_name: brane-log
# ports:
# - "127.0.0.1:50055:50055"
# restart: always
# environment:
# BROKERS: "aux-kafka:9092"
# EVENT_TOPIC: job-evt
# SCYLLA: "aux-scylla:9042"
# depends_on:
# - aux-kafka
# labels:
# - kompose.service.type=nodeport
# - kompose.service.nodeport.port=50055
# The service that chooses the appropriate domain to run a job on
brane-plr:
image: brane-plr:${BRANE_VERSION:-latest}
container_name: ${PLR_NAME:-brane-plr}
restart: always
volumes:
- ${NODE_CONFIG_PATH}:/node.yml
- ${INFRA}:${INFRA}
extra_hosts:
- host.docker.internal:host-gateway
networks:
default:
name: brane-central