-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (49 loc) · 1.01 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
version: '3.1'
services:
zookeeper:
image: zookeeper:3.9.2-jre-17
restart: always
hostname: zookeeper
ports:
- 2181:2181
environment:
ZOO_MY_ID: 1
ZOO_SERVERS: server.1=zookeeper:2888:3888;2181
postgres:
image: postgres:13.16-bullseye
restart: always
hostname: postgres
ports:
- 5432:5432
environment:
POSTGRES_USER: dus
POSTGRES_PASSWORD: dus123
POSTGRES_ROOT_PASSWORD: root
POSTGRES_DB: dus
volumes:
- ./res/postgres_container_init.sql:/docker-entrypoint-initdb.d/init.sql
dus-1:
image: cholapman/dus
depends_on:
- zookeeper
- postgres
restart: always
hostname: dus
ports:
- 8090:8090
environment:
ZOO_HOSTPORT: zookeeper:2181
dus-2:
image: cholapman/dus
depends_on:
- zookeeper
- postgres
restart: always
hostname: dus
ports:
- 8091:8090
environment:
ZOO_HOSTPORT: zookeeper:2181
networks:
dus:
driver: "bridge"