-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
90 lines (83 loc) · 2.22 KB
/
docker-compose.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.7"
services:
# stager task database
db:
image: redis
user: root
volumes:
- ${TASK_DB_REDIS_DATA:-db}:/data
command: --appendonly yes
# stager api server
api-server:
build:
context: .
target: api-server
image: ${DOCKER_REGISTRY:-dccn}/data-stager-api:${DOCKER_IMAGE_TAG:-latest}
user: root
volumes:
- ${API_CONFIG:-./config/api-server.yml}:/etc/stager/api-server.yml:ro
depends_on:
- db
command: -p 8080 -r redis://db:6379 -c /etc/stager/api-server.yml
logging:
driver: "json-file"
options:
max-size: "20m"
max-file: "5"
# stager worker
worker:
build:
context: .
target: worker
image: ${DOCKER_REGISTRY:-dccn}/data-stager-worker:${DOCKER_IMAGE_TAG:-latest}
user: root
volumes:
- ${IRODS_ICAT_CERT:-./docker/worker/icat.pem}:/opt/irods/ssl/icat.pem:ro
- ${WORKER_CONFIG:-./config/worker.yml}:/etc/stager/worker.yml:ro
- ${CRYPTO_RSA_PRIVATE}:/etc/stager/ssl/keypair.pem:ro
depends_on:
- api-server
command: -r redis://db:6379 -c /etc/stager/worker.yml
logging:
driver: "json-file"
options:
max-size: "20m"
max-file: "5"
# web ui for end user
ui:
build:
context: ./ui
image: ${DOCKER_REGISTRY:-dccn}/data-stager-ui:${DOCKER_IMAGE_TAG:-latest}
user: root
environment:
- AUTH_SERVER=${AUTH_SERVER:-https://authserver}
- AUTH_CLIENT_ID=${AUTH_CLIENT_ID:-clientid}
- AUTH_CLIENT_SECRET=${AUTH_CLIENT_SECRET:-clientsecret}
volumes:
- ${UI_CONFIG:-./ui/config/default.json}:/opt/stager-ui/config/default.json
- ${CRYPTO_RSA_PUBLIC}:/opt/stager-ui/ssl/public.pem:ro
depends_on:
- api-server
logging:
driver: "json-file"
options:
max-size: "20m"
max-file: "5"
# web ui for task administration
admin:
image: hibiken/asynqmon:${ASYNQMON_IMAGE_TAG:-latest}
command: --port 3081 --redis-url redis://db:6379
depends_on:
- db
- api-server
logging:
driver: "json-file"
options:
max-size: "20m"
max-file: "5"
volumes:
db:
networks:
default:
name: dr-data-stager-net
attachable: true