Spaces:
Sleeping
Sleeping
Commit
•
0d80570
1
Parent(s):
cceba77
Create docker-compose.yml
Browse files- docker-compose.yml +51 -0
docker-compose.yml
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
version: "3.10"
|
2 |
+
|
3 |
+
services:
|
4 |
+
redis:
|
5 |
+
image: redis:alpine
|
6 |
+
restart: unless-stopped
|
7 |
+
healthcheck:
|
8 |
+
test: redis-cli ping | grep PONG
|
9 |
+
deploy:
|
10 |
+
resources:
|
11 |
+
limits:
|
12 |
+
cpus: '0.2'
|
13 |
+
memory: 128M
|
14 |
+
security_opt:
|
15 |
+
- no-new-privileges:true
|
16 |
+
|
17 |
+
rabbit-mq:
|
18 |
+
image: rabbitmq:3.10-management-alpine
|
19 |
+
restart: unless-stopped
|
20 |
+
healthcheck:
|
21 |
+
test: rabbitmq-diagnostics -q ping
|
22 |
+
deploy:
|
23 |
+
resources:
|
24 |
+
limits:
|
25 |
+
cpus: '0.5'
|
26 |
+
memory: 525M
|
27 |
+
security_opt:
|
28 |
+
- no-new-privileges:true
|
29 |
+
|
30 |
+
jasmin:
|
31 |
+
image: jookies/jasmin:latest
|
32 |
+
restart: unless-stopped
|
33 |
+
ports:
|
34 |
+
- 2775:2775
|
35 |
+
- 8990:8990
|
36 |
+
- 1401:1401
|
37 |
+
depends_on:
|
38 |
+
redis:
|
39 |
+
condition: service_healthy
|
40 |
+
rabbit-mq:
|
41 |
+
condition: service_healthy
|
42 |
+
environment:
|
43 |
+
REDIS_CLIENT_HOST: redis
|
44 |
+
AMQP_BROKER_HOST: rabbit-mq
|
45 |
+
deploy:
|
46 |
+
resources:
|
47 |
+
limits:
|
48 |
+
cpus: '1'
|
49 |
+
memory: 256M
|
50 |
+
security_opt:
|
51 |
+
- no-new-privileges:true
|