-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (35 loc) · 756 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (35 loc) · 756 Bytes
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
version: '3.7'
services:
rabbitmq:
image: rabbitmq:3.6-management
container_name: RabbitMQ
restart: unless-stopped
mem_limit: 1024m
ports:
- "5672:5672"
- "15672:15672"
networks:
- cpg-network
volumes:
- rabbitmq-storage:/var/lib/rabbitmq
hostname: cpg-rabbitmq
healthcheck:
test: rabbitmqadmin show overview || exit 1
interval: 10s
timeout: 2s
mongodb:
image: mongo:3.6
container_name: MongoDB
restart: unless-stopped
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=root
ports:
- "27017:27017"
networks:
- cpg-network
volumes:
rabbitmq-storage:
networks:
cpg-network:
driver: bridge