-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
96 lines (91 loc) · 2.24 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
services:
postgres:
image: postgres:latest
container_name: postgres
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: ogigo
ports:
- "5432:5432"
networks:
- app-network
volumes:
- ./db:/docker-entrypoint-initdb.d
http-receiver:
build:
context: ./
dockerfile: dockerfile-http-receiver
container_name: http-receiver
environment:
POSTGRES_HOST: "host.docker.internal"
POSTGRES_PORT: "5432"
POSTGRES_USER: "user"
POSTGRES_PASSWORD: "password"
POSTGRES_DB: "ogigo"
ports:
- "80:80"
depends_on:
- postgres
networks:
- app-network
message-processor:
build:
context: ./
dockerfile: dockerfile-message-processor
container_name: message-processor
environment:
POSTGRES_HOST: "host.docker.internal"
POSTGRES_PORT: "5432"
POSTGRES_USER: "user"
POSTGRES_PASSWORD: "password"
POSTGRES_DB: "ogigo"
depends_on:
- postgres
networks:
- app-network
redpanda:
image: vectorized/redpanda:v23.2.17
command:
- redpanda start
- --smp 1
- --overprovisioned
- --node-id 0
- --kafka-addr PLAINTEXT://0.0.0.0:29092,OUTSIDE://0.0.0.0:9092
- --advertise-kafka-addr PLAINTEXT://redpanda:29092,OUTSIDE://localhost:9092
- --pandaproxy-addr 0.0.0.0:8082
- --advertise-pandaproxy-addr localhost:8082
ports:
- 8081:8081
- 8082:8082
- 9092:9092
- 29092:29092
networks:
- app-network
console:
image: docker.redpanda.com/redpandadata/console:v2.3.8
restart: on-failure
entrypoint: /bin/sh
command: -c "echo \"$$CONSOLE_CONFIG_FILE\" > /tmp/config.yml; /app/console"
environment:
CONFIG_FILEPATH: /tmp/config.yml
CONSOLE_CONFIG_FILE: |
kafka:
brokers: ["redpanda:29092"]
schemaRegistry:
enabled: true
urls: ["http://redpanda:8081"]
connect:
enabled: true
clusters:
- name: datagen
url: http://connect:8083
ports:
- "8080:8080"
depends_on:
- redpanda
networks:
- app-network
networks:
app-network:
driver: bridge