mam-kupi-api/docker-compose.yml

49 lines
1.3 KiB
YAML
Raw Normal View History

2023-09-06 05:22:05 +00:00
version: "3.9"
services:
postgres:
image: postgres:15.3
container_name: mam-kupi-postgres
environment:
POSTGRES_DB: "mam-kupi-db"
POSTGRES_USER: "mam-kupi-admin"
POSTGRES_PASSWORD: "7TTLpNh4GtQcDAMY"
volumes:
- mam-kupi-postgres-data:/var/lib/postgresql
ports:
- "25432:5432"
2023-09-09 05:37:38 +00:00
zookeeper:
image: docker.io/bitnami/zookeeper:3.7.1
ports:
- "2181:2181"
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
restart: on-failure
kafka:
image: docker.io/bitnami/kafka:3.4.1
ports:
- "9092:9092"
environment:
- KAFKA_BROKER_ID=1
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:9092
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_TLS_CLIENT_AUTH=none
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE=true
- KAFKA_CFG_DELETE_TOPIC_ENABLE=true
- KAFKA_CFG_ZOOKEEPER_CONNECTION_TIMEOUT_MS=60000
- KAFKA_CFG_COMPRESSION_TYPE=lz4
- KAFKA_CFG_BATCH_SIZE=131072
- KAFKA_CFG_LINGER_MS=10
- KAFKA_MESSAGE_MAX_BYTES=52428800
- KAFKA_ADVERTISED_HOST_NAME=localhost
- KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1
depends_on:
- zookeeper
restart: on-failure
2023-09-06 05:22:05 +00:00
volumes:
mam-kupi-postgres-data:
driver: local