forked from anonimpopov/final-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
88 lines (81 loc) · 1.58 KB
/
docker-compose.yaml
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
version: '2.3'
services:
zookeeper:
hostname: zookeeper
image: wurstmeister/zookeeper:3.4.6
expose:
- "2181"
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka
env_file:
- kafka/kafka-variables.env
depends_on:
- zookeeper
ports:
- '9093:9092'
- '8082:8082'
- '8083:8083'
mongo-db:
image: mongo:4.0
expose:
- "27017"
ports:
- "27017:27017"
environment:
MONGO_DATA_DIR: /data/db
MONGO_LOG_DIR: /dev/null
db:
image: postgres
restart: always
ports:
- 5432:5432
environment:
POSTGRES_DB: example
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
healthcheck:
test: "pg_isready -d $$POSTGRES_DB -U $$POSTGRES_USER"
interval: 10s
timeout: 5s
retries: 5
trip:
build:
context: "trip"
dockerfile: "trip.Dockerfile"
environment:
kafkaURL: kafka:9092
GroupID: logger-group
depends_on:
- kafka
client:
build:
context: "client"
dockerfile: "client.Dockerfile"
environment:
kafkaURL: kafka:9092
depends_on:
- kafka
offering:
build:
context: "offering"
dockerfile: "offering.Dockerfile"
expose:
- "8080"
ports:
- 8080:8080
environment:
kafkaURL: kafka:9092
GroupID: logger-group
depends_on:
- kafka
trip-sender-mock:
build:
context: trip-sender-mock
environment:
kafkaURL: kafka:9092
topic: trip_listener
huepic: topic2
depends_on:
- kafka