-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose-localdev.yml
83 lines (78 loc) · 2.02 KB
/
docker-compose-localdev.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
82
83
version: "3.8"
name: "edpn-local"
services:
zookeeper:
image: "bitnami/zookeeper:3.8"
restart: on-failure
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
volumes:
- "zookeeper:/bitnami"
healthcheck:
test: nc -vz localhost 2181 || exit -1
interval: 10s
timeout: 5s
retries: 3
start_period: 0s
kafka:
image: "bitnami/kafka:3.4"
restart: on-failure
environment:
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://localhost:9092
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_CFG_COMPRESSION_TYPE=gzip
volumes:
- "kafka:/bitnami/kafka"
ports:
- "9092:9092"
healthcheck:
test: kafka-topics.sh --list --bootstrap-server localhost:9092
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
depends_on:
zookeeper:
condition: service_healthy
trademodule_postgis:
image: "postgis/postgis:15-3.3-alpine"
restart: on-failure
environment:
- POSTGRES_USER=edpn_trademodule
- POSTGRES_PASSWORD=MSDVq372rNk3AwRq
- POSTGRES_DB=trademodule
volumes:
- "trademodule_postgis:/var/lib/postgresql/data"
ports:
- "54321:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -d trademodule -U edpn_trademodule"]
interval: 10s
timeout: 5s
retries: 5
explorationmodule_postgis:
image: "postgis/postgis:15-3.3-alpine"
restart: on-failure
environment:
- POSTGRES_USER=edpn_explorationmodule
- POSTGRES_PASSWORD=TvhRZP7b6Hrw64Ct
- POSTGRES_DB=explorationmodule
volumes:
- "explorationmodule_postgis:/var/lib/postgresql/data"
ports:
- "54322:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -d explorationmodule -U edpn_explorationmodule"]
interval: 10s
timeout: 5s
retries: 5
volumes:
zookeeper:
driver: local
kafka:
driver: local
trademodule_postgis:
driver: local
explorationmodule_postgis:
driver: local