-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-backend-services.yml
80 lines (77 loc) · 1.86 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
79
80
version: "3.6"
networks:
rabbitmq-prometheus:
volumes:
log_volume:
services:
booking-one: &booking
container_name: booking-one
build:
context: ./booking-service
dockerfile: Dockerfile
ports:
- "8100:8100"
labels:
collect_logs_with_filebeat: "true"
decode_log_event_to_json_object: "true"
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:
- "LOGGING_FILE=/logs/booking-2-application.log"
booking-three:
<<: *booking
container_name: booking-three
ports:
- "8102:8100"
environment:
- "LOGGING_FILE=/logs/booking-3-application.log"
searching-one: &searching
container_name: searching
build:
context: ./searching-service
dockerfile: Dockerfile
ports:
- "8200:8200"
labels:
collect_logs_with_filebeat: "true"
decode_log_event_to_json_object: "true"
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:
- "LOGGING_FILE=/logs/searching-2-application.log"
financial:
container_name: financial
build:
context: ./financial-service
dockerfile: Dockerfile
labels:
collect_logs_with_filebeat: "true"
decode_log_event_to_json_object: "true"
ports:
- "8300:8300"
environment:
- "LOGGING_FILE=/logs/financial-application.log"
networks:
- "rabbitmq-prometheus"
volumes:
- log_volume:/logs