-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathdocker-compose-govaction-loader.yml
More file actions
57 lines (53 loc) · 1.34 KB
/
docker-compose-govaction-loader.yml
File metadata and controls
57 lines (53 loc) · 1.34 KB
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
version: "3.9"
networks:
frontend:
external: true
cardano:
external: true
services:
frontend:
image: govtool/gov-action-loader-frontend:${GOVTOOL_TAG}
build:
context: ../../gov-action-loader/frontend
dockerfile: Dockerfile
environment:
VIRTUAL_HOST: https://governance-${BASE_DOMAIN}
networks:
- frontend
deploy:
placement:
constraints:
- node.labels.gov-action-loader == true
restart_policy:
delay: "30s"
resources:
limits:
memory: 500M
reservations:
memory: 100M
backend:
image: govtool/gov-action-loader-backend:${GOVTOOL_TAG}
build:
context: ../../gov-action-loader/backend
dockerfile: Dockerfile
environment:
KUBER_API_URL_SANCHO: "http://kuber:8081"
KUBER_API_URL_PREPROD: "https://preprod.kuber.cardanoapi.io"
KUBER_API_URL_PREVIEW: "https://preview.kuber.cardanoapi.io"
KUBER_API_KEY: ${KUBER_API_KEY}
VIRTUAL_HOST: https://governance-${BASE_DOMAIN}/api/ -> /api/
networks:
- default
- frontend
- cardano
deploy:
placement:
constraints:
- node.labels.gov-action-loader == true
restart_policy:
delay: "30s"
resources:
limits:
memory: 1G
reservations:
memory: 500M