Update Docker sample configs
This commit is contained in:
parent
0af35bec1a
commit
c5888bb64c
|
@ -1,5 +1,6 @@
|
||||||
version: "3.4"
|
version: "3.4"
|
||||||
services:
|
services:
|
||||||
|
# PostgreSQL is needed for both polylith and monolith modes.
|
||||||
postgres:
|
postgres:
|
||||||
hostname: postgres
|
hostname: postgres
|
||||||
image: postgres:9.6
|
image: postgres:9.6
|
||||||
|
@ -15,12 +16,14 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
|
||||||
|
# Zookeeper is only needed for polylith mode!
|
||||||
zookeeper:
|
zookeeper:
|
||||||
hostname: zookeeper
|
hostname: zookeeper
|
||||||
image: zookeeper
|
image: zookeeper
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
|
||||||
|
# Kafka is only needed for polylith mode!
|
||||||
kafka:
|
kafka:
|
||||||
container_name: dendrite_kafka
|
container_name: dendrite_kafka
|
||||||
hostname: kafka
|
hostname: kafka
|
||||||
|
@ -29,8 +32,6 @@ services:
|
||||||
KAFKA_ADVERTISED_HOST_NAME: "kafka"
|
KAFKA_ADVERTISED_HOST_NAME: "kafka"
|
||||||
KAFKA_DELETE_TOPIC_ENABLE: "true"
|
KAFKA_DELETE_TOPIC_ENABLE: "true"
|
||||||
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
|
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
|
||||||
ports:
|
|
||||||
- 9092:9092
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- zookeeper
|
- zookeeper
|
||||||
networks:
|
networks:
|
||||||
|
|
|
@ -7,6 +7,9 @@ services:
|
||||||
"--tls-cert=server.crt",
|
"--tls-cert=server.crt",
|
||||||
"--tls-key=server.key"
|
"--tls-key=server.key"
|
||||||
]
|
]
|
||||||
|
ports:
|
||||||
|
- 8008:8008
|
||||||
|
- 8448:8448
|
||||||
volumes:
|
volumes:
|
||||||
- ./config:/etc/dendrite
|
- ./config:/etc/dendrite
|
||||||
networks:
|
networks:
|
||||||
|
|
Loading…
Reference in a new issue