-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
97 lines (92 loc) · 3.62 KB
/
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
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
version: "3.7"
services:
kafka:
# image reference: https://hub.docker.com/r/bitnami/kafka/
image: bitnami/kafka:3.5.1
environment:
- KAFKA_CFG_NODE_ID=0
- KAFKA_CFG_PROCESS_ROLES=controller,broker
- [email protected]:9093
- KAFKA_CFG_LISTENERS=SASL_SSL://:9092,CONTROLLER://:9093
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:SASL_PLAINTEXT,SASL_SSL:SASL_SSL
- KAFKA_CFG_ADVERTISED_LISTENERS=SASL_SSL://:9092
- KAFKA_CLIENT_USERS=user
- KAFKA_CLIENT_PASSWORDS=password
- KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER
- KAFKA_CFG_SASL_MECHANISM_CONTROLLER_PROTOCOL=PLAIN
- KAFKA_CONTROLLER_USER=controller_user
- KAFKA_CONTROLLER_PASSWORD=controller_password
- KAFKA_CFG_INTER_BROKER_LISTENER_NAME=SASL_SSL
- KAFKA_CFG_SASL_MECHANISM_INTER_BROKER_PROTOCOL=PLAIN
- KAFKA_INTER_BROKER_USER=controller_user
- KAFKA_INTER_BROKER_PASSWORD=controller_password
- KAFKA_CERTIFICATE_PASSWORD=password
- KAFKA_TLS_TYPE=JKS
ports:
- '9092:9092'
- '9093:9093'
network_mode: host
volumes: # [] # uncomment this and comment below to remove persistence
- ./.data/kafka/data:/bitnami/kafka/data
- ./.data/kafka/config:/bitnami/kafka/config
mongo: # access with `mongosh 'mongodb://user:[email protected]/database?authSource=admin'`
# image reference: https://hub.docker.com/_/mongo
image: library/mongo:6.0.8
environment:
MONGO_INITDB_DATABASE: database
MONGO_INITDB_ROOT_USERNAME: user
MONGO_INITDB_ROOT_PASSWORD: password
ports: ["27017:27017"]
network_mode: host
volumes: # [] # uncomment this and comment below to remove persistence
- ./.data/mongodb/data/data/db:/data/db
mysql: # access with `mysql -uroot -h127.0.0.1 -P3306 -p`
# image reference: https://hub.docker.com/_/mysql
image: library/mysql:8.0.34
environment:
MYSQL_PASSWORD: password
MYSQL_USER: user
MYSQL_DATABASE: database
MYSQL_ROOT_PASSWORD: password
ports: ["3306:3306"]
network_mode: host
volumes: # [] # uncomment this and comment below to remove persistence
- ./.data/mysql/data/var/lib/mysql/data:/var/lib/mysql
nats: # access with `nats server info --server=127.0.0.1:4222 --nkey=./.data/nats/secrets/dev-admin.nkey`
# image reference: https://hub.docker.com/_/nats
image: library/nats:2.9.20-scratch
entrypoint:
- /nats-server
- -js
- -c
- /etc/nats/server.conf
ports:
- "4222:4222"
# # enable as needed
# - "6222:6222"
# - "8222:8222"
network_mode: host
volumes:
- ./.data/nats/config/server.conf:/etc/nats/server.conf
postgres: # access with `psql -Uuser -h127.0.0.1 -p5432 database -W`
# image reference: https://hub.docker.com/_/postgres
image: library/postgres:15.3-alpine
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: user
POSTGRES_DB: database
ports: ["5432:5432"]
network_mode: host
volumes: # [] # uncomment this and comment below to remove persistence
- ./.data/postgres/data/var/lib/postgres/data:/var/lib/postgresql/data
redis: # access with `redis-cli -h 127.0.0.1 -p 6379` and use `auth user password` in the redis tty
# image reference: https://hub.docker.com/_/redis
image: library/redis:7.0.12-alpine
command:
- redis-server
- /usr/local/etc/redis/redis.conf
ports: ["6379:6379"]
network_mode: host
volumes: # [] # uncomment and comment below to remove persistence
- ./.data/redis/config/redis.conf:/usr/local/etc/redis/redis.conf
- ./.data/redis/data:/data