-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathdocker-compose.yml.template
74 lines (74 loc) · 2.21 KB
/
docker-compose.yml.template
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
services:
broker_alice:
image: ${SCQL_IMAGE:-secretflow/scql:latest}
command:
- /home/admin/bin/broker
- -config=/home/admin/configs/config.yml
restart: always
ports:
- mode: host
protocol: tcp
published: ${ALICE_PORT:-8081}
target: 8080
volumes:
- ./broker/alice/conf/:/home/admin/configs/
- ./tls/root-ca.crt:/etc/ssl/certs/root-ca.crt
- ./tls/broker_alice-ca.crt:/home/admin/tls/cert.crt
- ./tls/broker_alice-ca.key:/home/admin/tls/key.key
broker_bob:
image: ${SCQL_IMAGE:-secretflow/scql:latest}
command:
- /home/admin/bin/broker
- -config=/home/admin/configs/config.yml
restart: always
ports:
- mode: host
protocol: tcp
published: ${BOB_PORT:-8082}
target: 8080
volumes:
- ./broker/bob/conf/:/home/admin/configs/
- ./tls/root-ca.crt:/etc/ssl/certs/root-ca.crt
- ./tls/broker_bob-ca.crt:/home/admin/tls/cert.crt
- ./tls/broker_bob-ca.key:/home/admin/tls/key.key
engine_alice:
cap_add:
- NET_ADMIN
command:
- /home/admin/bin/scqlengine
- --flagfile=/home/admin/engine/conf/gflags.conf
image: ${SCQL_IMAGE:-secretflow/scql:latest}
volumes:
- ./engine/alice/conf/gflags.conf:/home/admin/engine/conf/gflags.conf
- ./tls/engine_alice-ca.crt:/home/admin/engine/conf/cert.crt
- ./tls/engine_alice-ca.key:/home/admin/engine/conf/key.key
engine_bob:
cap_add:
- NET_ADMIN
command:
- /home/admin/bin/scqlengine
- --flagfile=/home/admin/engine/conf/gflags.conf
image: ${SCQL_IMAGE:-secretflow/scql:latest}
volumes:
- ./engine/bob/conf/gflags.conf:/home/admin/engine/conf/gflags.conf
- ./tls/engine_alice-ca.crt:/home/admin/engine/conf/cert.crt
- ./tls/engine_alice-ca.key:/home/admin/engine/conf/key.key
mysql:
image: mysql:8.0.39
environment:
- MYSQL_ROOT_PASSWORD=__MYSQL_ROOT_PASSWD__
- TZ=Asia/Shanghai
healthcheck:
retries: 10
test:
- CMD
- mysqladmin
- ping
- -h
- mysql
timeout: 20s
expose:
- "3306"
restart: always
volumes:
- ./mysql/initdb:/docker-entrypoint-initdb.d