-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
44 lines (42 loc) · 1.15 KB
/
docker-compose.yaml
File metadata and controls
44 lines (42 loc) · 1.15 KB
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
name: deliveryfoodsystem
services:
redpanda:
image: redpandadata/redpanda:v24.1.1
container_name: redpanda1
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
ports:
- 9092:9092
- 29092:29092
# http://localhost:8090
console:
image: docker.redpanda.com/redpandadata/console:v2.5.2
container_name: redpanda-console1
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"]
redpanda:
adminApi:
enabled: true
urls: ["http://redpanda:9644"]
ports:
- 8090:8080
depends_on:
- redpanda
# mongodb://localhost:27017/?authMechanism=DEFAULT
mongo:
image: mongo:6.0.15
container_name: mongodb1
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_DATABASE: mongodatabase