-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
81 lines (75 loc) · 1.73 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
postgresql:
image: postgres
hostname: postgresql
container_name: postgresql
expose:
- "5432"
ports:
- "5432:5432"
environment:
- "POSTGRES_PASSWORD=password"
- "POSTGRES_USER=postgres"
- "POSTGRES_DB=postgres"
volumes:
- postgres-db:/var/lib/postgresql/data
kafka:
image: spotify/kafka
hostname: kafka
expose:
- "9092"
- "2181"
ports:
- "9092:9092"
- "2181:2181"
presence:
image: jmcanterafonseca/challenge_presence_service
container_name: presence
links:
- postgresql
- kafka
expose:
- "5000"
ports:
- "5000:5000"
environment:
- Db_Url=jdbc:postgresql://postgresql:5432/presence_control
- Db_User=user
- Db_Pass=pass
- Kafka_Broker=kafka:9092
timesheet:
image: jmcanterafonseca/challenge_timesheet_service
container_name: timesheet
links:
- postgresql
- kafka
expose:
- "6000"
ports:
- "6000:6000"
environment:
- Db_Url=jdbc:postgresql://postgresql:5432/presence_control
- Db_User=user
- Db_Pass=pass
- Kafka_Broker=kafka:9092
alarmgenerator:
image: jmcanterafonseca/challenge_alarm_generator_service
container_name: alarmgenerator
links:
- kafka
environment:
- Kafka_Broker=kafka:9092
alarmhandler:
image: jmcanterafonseca/challenge_alarm_handler_service
container_name: alarmhandler
links:
- postgresql
- kafka
environment:
- Db_Url=jdbc:postgresql://postgresql:5432/presence_control
- Db_User=A
- Db_Pass=B
- Kafka_Broker=kafka:9092
- Email_Server=smtp.googlemail.com
- Email_Server_User=challenge@gmail.com
- Email_Server_Pass=pass
- Alarm_Recipient=jmcanterafonseca@gmail.com