-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
58 lines (53 loc) · 1.29 KB
/
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
services:
# Pulsar
pulsar-standalone:
image: apachepulsar/pulsar:3.0.7
environment:
- BOOKIE_MEM=" -Xms512m -Xmx512m -XX:MaxDirectMemorySize=1g"
command: >
/bin/bash -c "bin/apply-config-from-env.py conf/standalone.conf && bin/pulsar standalone"
volumes:
- "pulsardata:/pulsar/data"
- "pulsarconf:/pulsar/conf"
ports:
- "6650:6650"
- "8080:8080"
- "8081:8081"
## Databases
# In practice only one is needed, but we provide three for testing convenience
# Redis storage for state persistence
redis:
image: redis:6.0-alpine
ports:
- "6379:6379"
volumes:
- "redisdata:/data"
# Postgres Database
postgres:
image: postgres:15-alpine
environment:
POSTGRES_USER: "exampleuser"
POSTGRES_PASSWORD: "examplepass"
POSTGRES_DB: "exampledb"
ports:
- "5432:5432"
volumes:
- "postgresdata:/var/lib/postgresql/data"
# MySQL Database
mysql:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: "examplepass"
MYSQL_DATABASE: "exampledb"
MYSQL_USER: "exampleuser"
MYSQL_PASSWORD: "examplepass"
ports:
- "3306:3306"
volumes:
- "mysqldata:/var/lib/mysql"
volumes:
pulsardata:
pulsarconf:
redisdata:
postgresdata:
mysqldata: