-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (40 loc) · 1019 Bytes
/
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
version: "3.7"
services:
webserver:
build:
context: .
volumes:
- ./:/home
ports:
- "5000:5000"
command: flask run --host='0.0.0.0'
environment:
FLASK_ENV: development
PYTHONPATH: .
FLASK_APP: web/endpoints.py
depends_on:
- postgres
postgres:
image: postgres:13.2
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=admin
- POSTGRES_USER=admin
- POSTGRES_DB=postgres
volumes:
- ./schema_storages/postgres_init.sql:/docker-entrypoint-initdb.d/init.sql
zookeeper:
image: wurstmeister/zookeeper
kafka:
depends_on:
- zookeeper
image: wurstmeister/kafka:0.10.1.0-2
environment:
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
# KAFKA_CREATE_TOPICS: "lhama_second_step:1:1"
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_ADVERTISED_HOST_NAME: "kafka"
KAFKA_ADVERTISED_PORT: 9092
DOCKER_API_VERSION: 1.22