-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
177 lines (174 loc) · 5.23 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
version: "3.9"
services:
traefik:
restart: unless-stopped
image: traefik:2.5.7
networks:
- viplab
ports: # if your system has already apache running on 80/443 choose different ports and adjust traefik.toml
- "80:80"
- "443:443"
- "8080:8080"
volumes:
- ./traefik:/etc/traefik
- /var/run/docker.sock:/var/run/docker.sock
- ${CERTS_PATH}:/etc/certs # copy certs of your host to ./certs before!
websocket-api:
restart: unless-stopped
image: viplab/websocket-api:latest
networks:
- viplab
environment:
- JWKS_FILE=/config/jwks.json
- AMQP_HOST=activemq
volumes:
- ./jwks.json:/config/jwks.json:ro
depends_on:
- activemq
labels:
- "traefik.enable=true"
- "traefik.http.routers.websocket-api.entrypoints=websecure"
- "traefik.http.routers.websocket-api.tls=true"
- "traefik.http.routers.websocket-api.rule=Host(`${HOST_URL}`) && Path(`/computations`)"
activemq:
restart: unless-stopped
image: viplab/artemis:2.23.0-r0
networks:
- viplab
environment:
ARTEMIS_USERNAME: user
ARTEMIS_PASSWORD: password
standalone-frontend:
restart: unless-stopped
image: viplab/standalone-frontend:latest
networks:
- viplab
volumes:
- ./jwks.private.json:/jwks.private.json:ro
- ./examples:/input:ro
environment:
- WSAPI=wss://${HOST_URL}/computations
profiles: ["standalone"]
labels:
- "traefik.enable=true"
- "traefik.http.routers.standalone-frontend.entrypoints=websecure"
- "traefik.http.routers.standalone-frontend.tls=true"
- "traefik.http.routers.standalone-frontend.rule=Host(`${HOST_URL}`)"
standalone-frontend-mount:
restart: unless-stopped
image: viplab/standalone-frontend:latest
networks:
- viplab
volumes:
- ./jwks.private.json:/jwks.private.json:ro
- ${FRONTEND_DIR}/src:/app
- ./examples:/input:ro
environment:
- WSAPI=wss://${HOST_URL}/computations
profiles: ["standalone-mount"]
labels:
- "traefik.enable=true"
- "traefik.http.routers.standalone-frontend.entrypoints=websecure"
- "traefik.http.routers.standalone-frontend.tls=true"
- "traefik.http.routers.standalone-frontend.rule=Host(`${HOST_URL}`)"
vue-frontend-mount:
restart: unless-stopped
image: viplab/npm:18.13.0-alpine
networks:
- viplab
command: ["run", "serve", "--", "--host", "0.0.0.0"]
volumes:
- ./jwks.private.json:/app/src/assets/jwks.private.json:ro
- ${VUE_DIR}:/app
environment:
- WSAPI=wss://${HOST_URL}/computations
profiles: ["vue-mount"]
labels:
- "traefik.enable=true"
- "traefik.http.routers.vue-frontend.entrypoints=websecure"
- "traefik.http.routers.vue-frontend.tls=true"
- "traefik.http.routers.vue-frontend.rule=Host(`${HOST_URL}`)"
standalone-frontend-sign:
restart: unless-stopped
image: viplab/standalone-frontend:latest
networks:
- viplab
volumes:
- ./jwks.private.json:/jwks.private.json:ro
- ./examples:/input:ro
environment:
- WSAPI=wss://${HOST_URL}/computations
profiles: ["vue-mount"]
labels:
- "traefik.enable=true"
- "traefik.http.routers.vue-frontend-sign.entrypoints=websecure"
- "traefik.http.routers.vue-frontend-sign.tls=true"
- "traefik.http.routers.vue-frontend-sign.rule=Host(`${HOST_URL}`) && Path(`/sign`)"
darus-connector:
restart: unless-stopped
image: viplab/dv-viplab-connector:latest
networks:
- viplab
depends_on:
- redis
volumes:
- ./jwks.private.json:/jwks.private.json:ro
- /var/run/docker.sock:/var/run/docker.sock
environment:
- WSAPI=wss://${HOST_URL}/computations
- FLASK_SECRET
- LOGIN_MOD_JWT_KEY
- LOGIN_MOD_URL
- REDIS_HOST_PORT=redis:6379
- DATAVERSE_URL
profiles: ["darus"]
labels:
- "traefik.enable=true"
- "traefik.http.routers.darus-connector.entrypoints=websecure"
- "traefik.http.routers.darus-connector.tls=true"
- "traefik.http.routers.darus-connector.rule=Host(`${HOST_URL}`)"
redis:
image: redis:alpine
networks:
- viplab
restart: unless-stopped
profiles: ["darus"]
backend:
restart: unless-stopped
image: viplab/backend:latest
networks:
- viplab
environment:
- AMQPServer=activemq
- endpoint_url
- access_key
- secret_key
- rewrite_endpoint_url
- bucket_name
depends_on:
- activemq
volumes:
- /var/run/docker.sock:/var/run/docker.sock
s3:
restart: unless-stopped
image: scireum/s3-ninja:latest
networks:
- viplab
profiles: ["s3"]
labels:
- "traefik.enable=true"
- "traefik.http.routers.s3.entrypoints=websecure"
- "traefik.http.routers.s3.tls=true"
- "traefik.http.routers.s3.rule=Host(`${HOST_URL}`) && (PathPrefix(`/test-bucket`) || PathPrefix(`/ui`) || PathPrefix(`/assets`))"
dummy-backend:
restart: unless-stopped
image: viplab/dummy-backend:latest
networks:
- viplab
environment:
- amqp-host=activemq
- viplab.responses=
profiles: ["dummy"]
networks:
viplab:
enable_ipv6: ${ENABLE_IPV6:-false}