-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
53 lines (51 loc) · 1.25 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
version: "3.9"
services:
postgres:
image: postgres:16.3-alpine
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=secret
- POSTGRES_DB=go_wallet
ports:
- "5432:5432"
volumes:
- data-volume:/var/lib/postgresql/data
zookeeper:
image: "bitnami/zookeeper:3.8.4-debian-12-r8"
ports:
- "2181:2181"
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
kafka:
image: "bitnami/kafka:3.7.1-debian-12-r0"
ports:
- "29092:29092"
environment:
- KAFKA_BROKER_ID=1
- KAFKA_CFG_LISTENERS=PLAINTEXT://:29092
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://localhost:29092
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
depends_on:
- zookeeper
redis:
image: redis:7-alpine
ports:
- "6379:6379"
# wallet-service:
# build:
# context: .
# dockerfile: wallet/Dockerfile
# ports:
# - "8080:8080"
# environment:
# - DB_SOURCE=postgresql://root:secret@postgres:5432/postgres?sslmode=disable
# - REDIS_ADDRESS=redis:6379
# - KAFKA_BROKER=kafka:29092
# depends_on:
# - postgres
# - redis
# - kafka
# command: [ "/app/main" ]
volumes:
data-volume: