-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstack-compose.yml
122 lines (115 loc) · 2.74 KB
/
stack-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
version: "3.5"
networks:
servicenet:
driver: overlay
ipam:
config:
-
subnet: 10.0.9.0/24
configs:
auth_v1_svcs_config:
file: ./configs/auth-v1-svcs-config.json
hydra_logging_svcs_config:
file: ./configs/hydra-logging-svcs-config.json
# hydra_router_config:
# file: ./configs/hydra-router-config.json
hydra_router.env:
file: ./configs/hydra-router.env
hydra_synchron_svcs_config:
file: ./configs/hydra-synchron-svcs-config.json
hmr_service_config:
file: ./configs/hmr-service-config.json
secrets:
env_file:
file: ./configs/secrets/.env
auth.env:
file: ./configs/secrets/auth.env
service.pem:
file: ./configs/secrets/service.pem
service.pub:
file: ./configs/secrets/service.pub
services:
auth-v1-svcs:
image: pnxtech/auth-v1-svcs:0.1.24
networks:
- servicenet
depends_on:
- redis
configs:
- source: auth_v1_svcs_config
target: /usr/src/app/config/config.json
environment:
AUTH_ENV: /run/secrets/auth.env
SERVICE_PEM: /run/secrets/service.pem
SERVICE_PUB: /run/secrets/service.pub
secrets:
- auth.env
- service.pem
- service.pub
deploy:
replicas: 1
hydra-logging-svcs:
image: pnxtech/hydra-logging-svcs:0.4.4
networks:
- servicenet
depends_on:
- redis
configs:
- source: hydra_logging_svcs_config
target: /usr/src/app/config/config.json
volumes:
- "./data/${STACK_NAME}/logs:/logs"
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 6
hydra-router:
image: pnxtech/hydra-router:1.9.15
volumes:
- "/etc/localtime:/etc/localtime:ro"
networks:
- servicenet
depends_on:
- redis
configs:
# - source: hydra_router_config
# target: /usr/src/app/config/config.json
- source: hydra_router.env
target: /usr/src/app/.env
ports:
- target: 80
published: 5353
protocol: tcp
mode: ingress
environment:
HYDRA_ROUTER_ENV: /usr/src/app/.env
deploy:
replicas: 1
hydra-synchron-svcs:
image: pnxtech/hydra-synchron-svcs:1.3.3
volumes:
- "/etc/localtime:/etc/localtime:ro"
networks:
- servicenet
depends_on:
- redis
configs:
- source: hydra_synchron_svcs_config
target: /usr/src/app/config/config.json
deploy:
replicas: 1
hmr-service:
image: pnxtech/hmr-service:1.0.0
volumes:
- "/etc/localtime:/etc/localtime:ro"
networks:
- servicenet
depends_on:
- redis
configs:
- source: hmr_service_config
target: /usr/src/app/config/config.json
deploy:
replicas: 1