-
Notifications
You must be signed in to change notification settings - Fork 1
/
dc-research.yml
106 lines (102 loc) · 2.17 KB
/
dc-research.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
version: '3.1'
services:
db:
image: postgres:14.2-alpine
volumes:
- /opt/docker/research/volumes/pg-data-research:/var/lib/postgresql/data
networks:
database:
aliases:
- db
ports:
- '5438:5432'
deploy:
placement:
constraints:
- node.labels.database == true
replicas: 1
restart_policy:
condition: any
environment:
POSTGRES_PASSWORD_FILE: /run/secrets/research_pg_pass
POSTGRES_USER_FILE: /run/secrets/research_pg_user
POSTGRES_DB: research
secrets:
- research_pg_user
- research_pg_pass
back:
image: cincoders/research-back:latest
volumes:
- /opt/docker/research/volumes/xmls:/xmls
networks:
frontend:
aliases:
- back
database:
aliases:
- back
proxy-net:
aliases:
- research-back
deploy:
placement:
constraints:
- node.labels.frontend == true
replicas: 1
restart_policy:
condition: any
secrets:
- research_back_env
- cert
- cert_key
- cert_intermediate
front:
image: cincoders/research-front:latest
networks:
frontend:
aliases:
- front
proxy-net:
aliases:
- research-front
deploy:
placement:
constraints:
- node.labels.frontend == true
replicas: 1
restart_policy:
condition: any
environment:
RESEARCH_APIURL_FILE: /run/secrets/research_apiurl
HR_APIURL_FILE: /run/secrets/hr_apiurl
KEYCLOAK_PUBLIC_JSON_FILE: /run/secrets/research_keycloak_public_json
secrets:
- research_apiurl
- hr_apiurl
- research_keycloak_public_json
- cert
- cert_key
secrets:
research_pg_pass:
external: true
research_pg_user:
external: true
research_back_env:
external: true
research_apiurl:
external: true
research_keycloak_public_json:
external: true
hr_apiurl:
external: true
cert:
external: true
cert_key:
external: true
cert_intermediate:
external: true
networks:
frontend:
database:
proxy-net:
external: true