-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathdocker-compose-backend-services.yml
78 lines (75 loc) · 1.85 KB
/
docker-compose-backend-services.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
# https://docs.docker.com/compose/compose-file/
version: "3.6"
# https://docs.docker.com/compose/compose-file/#networks
networks:
rabbitmq-prometheus:
# https://docs.docker.com/compose/compose-file/#volumes
volumes:
log_volume:
services:
booking-one: &booking
container_name: booking-one
build:
context: ./booking
dockerfile: Dockerfile
ports:
- "8100:8100"
environment:
- "SPRING_PROFILES_ACTIVE=prod"
- "LOGGING_FILE=/logs/booking-1-application.log"
networks:
- "rabbitmq-prometheus"
volumes:
- log_volume:/logs
booking-two:
<<: *booking
container_name: booking-two
ports:
- "8101:8100"
environment:
- "SPRING_PROFILES_ACTIVE=prod"
- "LOGGING_FILE=/logs/booking-2-application.log"
booking-three:
<<: *booking
container_name: booking-three
ports:
- "8102:8100"
environment:
- "SPRING_PROFILES_ACTIVE=prod"
- "LOGGING_FILE=/logs/booking-3-application.log"
searching-one: &searching
container_name: searching
build:
context: ./searching
dockerfile: Dockerfile
ports:
- "8200:8200"
environment:
- "SPRING_PROFILES_ACTIVE=prod"
- "LOGGING_FILE=/logs/searching-application.log"
networks:
- "rabbitmq-prometheus"
volumes:
- log_volume:/logs
searching-two:
<<: *searching
container_name: searching-two
ports:
- "8201:8200"
environment:
- "SPRING_PROFILES_ACTIVE=prod"
- "LOGGING_FILE=/logs/searching-2-application.log"
financial:
container_name: financial
build:
context: ./financial
dockerfile: Dockerfile
ports:
- "8300:8300"
environment:
- "SPRING_PROFILES_ACTIVE=prod"
- "LOGGING_FILE=/logs/financial-application.log"
networks:
- "rabbitmq-prometheus"
volumes:
- log_volume:/logs