forked from qa-guru/niffler-st2
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
118 lines (109 loc) · 2.39 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
version: '3.9'
services:
niffler-all-db:
container_name: niffler-all-db
image: postgres:15.1
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=secret
healthcheck:
test: [ "CMD", "pg_isready" ]
interval: 3s
timeout: 3s
retries: 5
expose:
- "5432"
volumes:
- pgdata:/var/lib/postgresql/data
restart: always
networks:
- niffler-network
dns_search: .
niffler-auth:
container_name: niffler-auth
image: dtuchs/niffler-auth:latest
ports:
- "9000:9000"
healthcheck:
test: "wget --spider http://localhost:9000/actuator/health || exit 1"
interval: 5s
timeout: 5s
retries: 10
restart: always
depends_on:
niffler-all-db:
condition: service_healthy
networks:
- niffler-network
dns_search: .
niffler-currency:
container_name: niffler-currency
image: dtuchs/niffler-currency:latest
expose:
- "8091"
- "8092"
restart: always
depends_on:
niffler-all-db:
condition: service_healthy
networks:
- niffler-network
dns_search: .
niffler-gateway:
container_name: niffler-gateway
image: dtuchs/niffler-gateway:latest
ports:
- "8090:8090"
healthcheck:
test: "wget --spider http://localhost:8090/actuator/health || exit 1"
interval: 5s
timeout: 5s
retries: 10
restart: always
depends_on:
- niffler-auth
networks:
- niffler-network
dns_search: .
niffler-spend:
container_name: niffler-spend
image: dtuchs/niffler-spend:latest
expose:
- "8093"
restart: always
depends_on:
niffler-all-db:
condition: service_healthy
networks:
- niffler-network
dns_search: .
niffler-userdata:
container_name: niffler-userdata
image: dtuchs/niffler-userdata:latest
expose:
- "8089"
restart: always
depends_on:
niffler-all-db:
condition: service_healthy
networks:
- niffler-network
dns_search: .
niffler-frontend:
container_name: niffler-frontend
image: dtuchs/niffler-frontend:latest
ports:
- "80:80"
restart: always
depends_on:
niffler-gateway:
condition: service_healthy
networks:
- niffler-network
dns_search: .
volumes:
pgdata:
external: true
networks:
niffler-network:
driver: bridge