-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdocker-compose.yaml
120 lines (111 loc) · 2.73 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
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
115
116
117
118
119
120
version: "3"
services:
postgres:
image: postgres
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
PGDATA: /data/postgres
volumes:
- postgres:/data/postgres
ports:
- 5432:5432
restart: unless-stopped
redpanda:
image: docker.redpanda.com/vectorized/redpanda:v22.2.2
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
environment:
- AUTO_CREATE_TOPICS_ENABLED=true
ports:
- 8081:8081
- 8082:8082
- 9092:9092
- 9644:9644
- 29092:29092
redpanda-console:
image: vectorized/console:latest
container_name: redpanda-console
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"]
redpanda:
adminApi:
enabled: true
urls: ["http://redpanda:9644"]
connect:
enabled: true
clusters:
- name: local-connect-cluster
url: http://connect:8083
ports:
- 8080:8080
depends_on:
- redpanda
materialize:
image: materialize/materialized:v0.15.0
container_name: materialize
command: -w2 --disable-telemetry
ports:
- 6875:6875
redis:
image: bitnami/redis:latest
container_name: redis
environment:
- ALLOW_EMPTY_PASSWORD=yes
ports:
- 6379:6379
rq-dashboard:
image: jaredv/rq-docker:0.0.2
command: rq-dashboard -H redis
ports:
- 9181:9181
rq-worker:
image: jaredv/rq-docker:0.0.2
command: rq worker -u redis://redis:6379 high normal low
deploy:
replicas: 3
api:
build: .
environment:
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/postgres
ports:
- 8000:8000
volumes:
- ./:/code
command: >
bash -c "
uvicorn beaver.main:app --host 0.0.0.0 --port 8000 --reload --reload-dir /code
"
depends_on:
- postgres
- redpanda
- materialize
- rq-worker
ui:
build: .
environment:
BEAVER_HOST: http://localhost
ports:
- 8501:8501
volumes:
- ./:/code
command: poetry run streamlit run ui/Home.py
depends_on:
- api
volumes:
postgres: