-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
51 lines (50 loc) · 1.19 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
version: "3.4"
services:
# crawler:
# build:
# context: ../
# dockerfile: .
# container_name: spacebox-crawler
# environment:
# ENV_FILE: ".env"
# depends_on:
# - zookeeper
# - kafka
# - mongo
zookeeper:
image: bitnami/zookeeper:3.8.0
container_name: spacebox-zookeeper
ports:
- '2181:2181'
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
restart: unless-stopped
kafka:
image: bitnami/kafka:3.3.1
container_name: spacebox-kafka
# networks:
# - app-tier
ports:
- '9092:9092'
environment:
- KAFKA_BROKER_ID=1
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:9092
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
restart: unless-stopped
depends_on:
- zookeeper
mongo:
image: mongo:6.0.3
restart: always
hostname: mongo
container_name: spacebox-mongo
environment:
MONGO_INITDB_ROOT_USERNAME: space_box_user
MONGO_INITDB_ROOT_PASSWORD: space_box_password
MONGO_INITDB_DATABASE: spacebox
ports:
- "27018:27017"
volumes:
- ./volumes/mongo:/data/db