-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
58 lines (53 loc) · 1.09 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
52
53
54
55
56
57
58
name: call-rust
version: '3.9'
services:
postgres-db:
image: postgres
restart: always
shm_size: 128mb
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: passwd
POSTGRES_DB: call-rust
volumes:
- type: volume
source: db-data
target: /var/lib/postgresql/data
networks:
- network
mongo-db:
image: bitnami/mongodb:latest
restart: always
environment:
MONGODB_USERNAME: user
MONGODB_PASSWORD: passwd
MONGODB_DATABASE: call-rust
volumes:
- type: volume
source: db-data
target: /data/db
networks:
- network
rocketmq:
image: apache/rocketmq:latest
ports:
- '9876:9876'
- '10909:10909'
- '10911:10911'
environment:
- JAVA_OPTS=-Xmx512m -Xms512m
- ROCKETMQ_HOME=/opt/rocketmq
- ROCKETMQ_LOG_HOME=/opt/rocketmq/logs
volumes:
- mq-data:/opt/rocketmq/store
- mq-logs:/opt/rocketmq/logs
networks:
- network
volumes:
db-data:
driver: local
mq-data:
driver: local
networks:
network:
driver: bridge