-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-production.yml
69 lines (64 loc) · 1.3 KB
/
docker-compose-production.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: "3.8"
services:
rabbitmq:
image: "rabbitmq:3.9"
container_name: rabbitmq
ports:
- "5672:5672"
restart: always
networks:
- codex-network
redis:
image: "redis:latest"
container_name: redis
restart: always
ports:
- "6379:6379"
networks:
- codex-network
server:
image: aayushpagare21/rce-server:01
container_name: server
restart: always
ports:
- "80:80"
environment:
NODE_ENV: production
PORT: 80
QUEUE_HOST: rabbitmq
QUEUE_PORT: 5672
QUEUE_USER_NAME: guest
QUEUE_USER_PASSWORD: guest
REDIS_HOST: redis
REDIS_PORT: 6379
CACHE_EXPIRY_SECONDS: 1000000
depends_on:
- rabbitmq
- redis
networks:
- codex-network
worker:
image: aayushpagare21/rce-sandbox:01
container_name: worker
restart: always
environment:
NODE_ENV: production
QUEUE_HOST: rabbitmq
QUEUE_PORT: 5672
QUEUE_USER_NAME: guest
QUEUE_USER_PASSWORD: guest
REDIS_HOST: redis
REDIS_PORT: 6379
CACHE_EXPIRY_SECONDS: 1000000
depends_on:
- rabbitmq
- redis
networks:
- codex-network
deploy:
resources:
memory: 200M
cpus: 0.5
networks:
codex-network:
driver: bridge