-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (52 loc) · 1.1 KB
/
docker-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
version: "3"
services:
rabbitmq:
image: "rabbitmq:3.9-management"
container_name: rabbitmq-local
ports:
- "5672:5672"
- "15672:15672"
redis:
image: "redis/redis-stack:latest"
container_name: redis-local
ports:
- "6379:6379"
- "8001:8001"
server:
image: server:latest
container_name: server
restart: always
ports:
- "3000:3000"
environment:
NODE_ENV: development
PORT: 3000
QUEUE_HOST: rabbitmq
QUEUE_PORT: 5672
QUEUE_USER_NAME: guest
QUEUE_USER_PASSWORD: guest
REDIS_HOST: redis
REDIS_PORT: 6379
CACHE_EXPIRY_SECONDS: 10000
depends_on:
- rabbitmq
- redis
worker:
image: worker:latest
container_name: worker
restart: always
environment:
NODE_ENV: development
QUEUE_HOST: rabbitmq
QUEUE_PORT: 5672
QUEUE_USER_NAME: guest
QUEUE_USER_PASSWORD: guest
REDIS_HOST: redis
REDIS_PORT: 6379
CACHE_EXPIRY_SECONDS: 10000
depends_on:
- rabbitmq
- redis
pids_limit: 40
cpus: 0.5
mem_limit: 300M