-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.swarm.yml
80 lines (76 loc) · 2.29 KB
/
docker-compose.swarm.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
version: "3.7"
services:
## streamer
service:
volumes:
# bind-mount for sss authentication
- /var/lib/sss/pipes:/var/lib/sss/pipes
- /var/lib/sss/mc:/var/lib/sss/mc:ro
- ${STREAMER_SERVICE_CONFIG}:/opt/streamer/config/default.json
- ${STREAMER_MAILER_CONFIG}:/opt/streamer/config/mailer.json
networks:
default:
# join the proxynet with hostname alias
proxynet:
aliases:
- streamer
ftp:
volumes:
- ${PROJECT_CEPHFS_VOL}:/home/${STREAMER_FTP_USERNAME:-streamer}/project
- ${STREAMER_FTP_AUTHORIZED_KEYS}:/home/${STREAMER_FTP_USERNAME:-streamer}/.ssh/keys/id_rsa.pub:ro
- ${STREAMER_FTP_HOST_KEY_ED25519}:/etc/ssh/ssh_host_ed25519_key:ro
- ${STREAMER_FTP_HOST_KEY_RSA}:/etc/ssh/ssh_host_rsa_key:ro
ui:
networks:
default:
# join the proxynet with hostname alias
proxynet:
aliases:
- streamer-ui
ports:
- ${STREAMER_UI_EXTERNAL_PORT:-9000}:9000
volumes:
- ${PROJECT_CEPHFS_VOL}:/project_cephfs
- ${PROJECT_VOL}:/project
- ${STREAMER_UI_LOG_VOL}:/opt/streamer-ui-server/log
- ${STREAMER_SERVICE_CONFIG}:/opt/streamer-ui-server/config/streamer-service-config.json
- ${STREAMER_UI_CONFIG}:/opt/streamer-ui-server/config/streamer-ui-config.json
ui-db:
volumes:
- ${STREAMER_UI_DB_DATA_VOL}:/var/lib/postgresql/data
## stager
stager-db:
volumes:
- ${STAGER_DB_DATA_VOL}:/data
# stager api server
stager-api-server:
volumes:
- ${STAGER_API_CONFIG}:/etc/stager/api-server.yml:ro
- ${PROJECT_VOL:-/project}:/project
- ${PROJECT_CEPHFS_VOL:-/project_cephfs}:/project_cephfs
logging:
driver: "json-file"
options:
max-size: "20m"
max-file: "5"
# stager worker
stager-worker:
volumes:
- ${STAGER_IRODS_ICAT_CERT}:/opt/irods/ssl/icat.pem:ro
- ${STAGER_WORKER_CONFIG}:/etc/stager/worker.yml:ro
- ${PROJECT_VOL:-/project}:/project
- ${PROJECT_CEPHFS_VOL:-/project_cephfs}:/project_cephfs
deploy:
placement:
constraints:
- node.labels.IpRange==44
logging:
driver: "json-file"
options:
max-size: "20m"
max-file: "5"
networks:
default:
attachable: true
proxynet:
external: true