-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
39 lines (37 loc) · 856 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
39 lines (37 loc) · 856 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
version: '2.4'
services:
rabbitmq:
build:
context: ./rabbitmq
dockerfile: Dockerfile
restart: unless-stopped
hostname: my-rabbit
volumes:
- "./data/rabbit:/var/lib/rabbitmq/mnesia/rabbit@my-rabbit"
ports:
- "15672:15672"
- "5672:5672"
environment:
- RABBITMQ_VM_MEMORY_HIGH_WATERMARK=0.7
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:15672"]
interval: 10s
timeout: 5s
retries: 5
cpus: '4'
mem_limit: 1024M
redis:
image: redis:6.0-alpine
restart: unless-stopped
volumes:
- "./data/redis:/data"
ports:
- "6380:6379"
command:
- redis-server
- --save ''
- --notify-keyspace-events Kgs
- --maxmemory-policy volatile-ttl
- --maxmemory 512mb
cpus: '2'
mem_limit: 1024M