-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
123 lines (114 loc) · 2.46 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
version: '3.9'
networks:
rangiffler-network:
driver: bridge
services:
all-db:
container_name: all-db
image: postgres:15.1
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=secret
healthcheck:
test: [ "CMD", "pg_isready" ]
interval: 3s
timeout: 3s
retries: 5
ports:
- "5432:5432"
volumes:
- ./sql/create-db.sql:/docker-entrypoint-initdb.d/create-db.sql
restart: always
networks:
- rangiffler-network
dns_search: .
rabbit-mq:
container_name: rabbit-mq
image: rabbitmq:3.11-management
ports:
- "5672:5672"
- "15672:15672"
restart: always
networks:
- rangiffler-network
dns_search: .
auth:
container_name: auth
image: sashkir7/rangiffler-auth:latest
ports:
- "9000:9000"
restart: always
depends_on:
all-db:
condition: service_healthy
rabbit-mq:
condition: service_started
networks:
- rangiffler-network
dns_search: .
gateway:
container_name: gateway
image: sashkir7/rangiffler-gateway:latest
ports:
- "8080:8080"
healthcheck:
test: "wget --spider http://localhost:8090/actuator/health || exit 1"
interval: 5s
timeout: 5s
retries: 10
restart: always
depends_on:
- auth
networks:
- rangiffler-network
dns_search: .
userdata:
container_name: userdata
image: sashkir7/rangiffler-userdata:latest
ports:
- "9002:9002"
restart: always
depends_on:
all-db:
condition: service_healthy
# After created main and error queues
auth:
condition: service_started
rabbit-mq:
condition: service_started
networks:
- rangiffler-network
dns_search: .
geo:
container_name: geo
image: sashkir7/rangiffler-geo:latest
ports:
- "9004:9004"
restart: always
depends_on:
all-db:
condition: service_healthy
networks:
- rangiffler-network
dns_search: .
photo:
container_name: photo
image: sashkir7/rangiffler-photo:latest
ports:
- "9006:9006"
restart: always
depends_on:
all-db:
condition: service_healthy
networks:
- rangiffler-network
dns_search: .
frontend:
container_name: frontend
image: sashkir7/rangiffler-frontend:latest
ports:
- "80:80"
restart: always
networks:
- rangiffler-network
dns_search: .