-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
67 lines (65 loc) · 1.36 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
version: '3.1'
services:
db:
image: postgres
restart: always
volumes:
- ./postgresql/schema:/docker-entrypoint-initdb.d
- ./postgresql/pgdata:/var/lib/postgresql/data
env_file:
- ./postgresql/.env
pgadmin:
image: dpage/pgadmin4
ports:
- "5050:80"
depends_on:
- db
env_file:
- ./postgresql/.env
hotel-search:
build: ./hotels-search
depends_on:
- db
ports:
- "8080:8080"
volumes:
- ./hotels-search/:/app
env_file:
- ./hotels-search/.env
user-service:
build: ./user-service
depends_on:
- db
ports:
- "8081:8080"
volumes:
- ./user-service/:/app
env_file:
- ./user-service/.env
notification-service:
build: ./notification-service
depends_on:
- db
ports:
- "8082:8080"
volumes:
- ./notification-service/:/app
env_file:
- ./notification-service/.env
# command: ["tail", "-f", "/dev/null"]
zookeeper:
image: zookeeper:3.7.0
restart: always
ports:
- "2181:2181"
kafka:
image: confluentinc/cp-kafka:latest
depends_on:
- zookeeper
restart: always
ports:
- "9092:9092"
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1