forked from ed-pilots-network/backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
114 lines (107 loc) · 2.8 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
version: "3.8"
name: "edpn-backend"
services:
zookeeper:
## TODO: Tag this image locally
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:
## TODO: Tag this image locally
image: "bitnami/kafka:3.4"
restart: on-failure
env_file:
- env/${ENVIRONMENT}/.env_kafka
volumes:
- "kafka:/bitnami/kafka"
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:
## TODO: Tag this image locally
image: "postgis/postgis:15-3.3-alpine"
restart: on-failure
env_file:
- env/${ENVIRONMENT}/.env_trademodule
volumes:
- "trademodule_postgis:/var/lib/postgresql/data"
ports:
- "127.0.0.1:27730:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -d trademodule -U edpn_trademodule"]
interval: 10s
timeout: 5s
retries: 5
explorationmodule_postgis:
## TODO: Tag this image locally
image: "postgis/postgis:15-3.3-alpine"
restart: on-failure
env_file:
- env/${ENVIRONMENT}/.env_explorationmodule
volumes:
- "explorationmodule_postgis:/var/lib/postgresql/data"
ports:
- "127.0.0.1:28302:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -d explorationmodule -U edpn_explorationmodule"]
interval: 10s
timeout: 5s
retries: 5
eddn-message-listener:
image: nexus.edpn.io/edpn/backend/eddn-message-listener:latest-snapshot
restart: on-failure
env_file:
- env/${ENVIRONMENT}/.env_eddn_message_listener
healthcheck:
test: "wget -qO- localhost:8080/actuator/health | grep UP || exit 1"
interval: 20s
timeout: 5s
retries: 5
start_period: 30s
depends_on:
kafka:
condition: service_healthy
modulith:
image: nexus.edpn.io/edpn/backend/modulith:latest-snapshot
restart: on-failure
env_file:
- env/${ENVIRONMENT}/.env_modulith
ports:
- "8080:8080"
healthcheck:
test: "wget -qO- localhost:8080/actuator/health | grep UP || exit 1"
interval: 20s
timeout: 5s
retries: 5
start_period: 30s
depends_on:
kafka:
condition: service_healthy
trademodule_postgis:
condition: service_healthy
explorationmodule_postgis:
condition: service_healthy
volumes:
zookeeper:
driver: local
kafka:
driver: local
trademodule_postgis:
driver: local
explorationmodule_postgis:
driver: local