-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
55 lines (51 loc) · 1.15 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
services:
db:
image: mysql:8.0.27
environment:
MYSQL_DATABASE: ies
MYSQL_USER: ies
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: password
healthcheck:
test: mysqladmin ping -h localhost
interval: 30s
timeout: 10s
retries: 5
backend:
build: ./projBackend/finance
ports:
- 8080:8080
depends_on:
db:
condition: service_healthy
rabbitmq:
condition: service_healthy
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://db:3306/ies
SPRING_DATASOURCE_USERNAME: ies
SPRING_DATASOURCE_PASSWORD: password
FINANCE_RABBITMQ_HOST: rabbitmq
restart: always
rabbitmq:
image: rabbitmq:alpine
healthcheck:
test: rabbitmq-diagnostics -q status
interval: 30s
timeout: 10s
retries: 5
client:
build: ./projFrontend
ports:
- 4200:80
depends_on:
- backend
data_gen:
build: ./projDataGenerator/
restart: on-failure
environment:
FINANCE_RABBITMQ_HOST: rabbitmq
depends_on:
rabbitmq:
condition: service_healthy
links:
- rabbitmq