-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (41 loc) · 939 Bytes
/
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
version: '2.4'
services:
rabbitmq:
image: 'rabbitmq:3.8.14-management-alpine'
healthcheck:
test: rabbitmq-diagnostics check_port_connectivity
interval: 30s
timeout: 30s
retries: 10
restart: always
redis-server:
image: 'redis:latest'
restart: always
server:
build: ./server
# image: surendarsingh/compiler:server
environment:
- AMQP_URL=amqp://rabbitmq:5672
- REDIS_URL=redis://redis-server:6379
depends_on:
rabbitmq:
condition: service_healthy
restart: always
ports:
- "80:80"
compiler:
build: ./compiler
# image: surendarsingh/compiler:compiler
environment:
- AMQP_URL=amqp://rabbitmq:5672
- REDIS_URL=redis://redis-server:6379
depends_on:
- rabbitmq
- redis-server
- server
restart: always
pids_limit: 60
cpus: 1
mem_limit: 150M
deploy:
replicas: 1