-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (54 loc) · 1.03 KB
/
docker-compose.yml
File metadata and controls
60 lines (54 loc) · 1.03 KB
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
version: '2'
services:
#Nginx
web:
image: nginx:1.13.8
#cpu_shares: 30
#mem_limit: 128M
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./CityFarm/front:/code
#Tornado
websocket:
build: CityFarm
command: ["python", "websocket.py"]
#cpu_shares: 30
#mem_limit: 256M
ports:
- "8888:8888"
volumes:
- ./CityFarm/code:/code
depends_on:
- redis
#Celery
worker:
build: CityFarm
#cpu_shares: 30
#mem_limit: 128M
command: ["sh","run-worker.sh"]
volumes:
- ./CityFarm/code:/code
depends_on:
- rabbitmq
- redis
#RabbitMQ
rabbitmq:
image: rabbitmq:3.6.15
command: ["rabbitmq-server"]
#cpu_shares: 30
#mem_limit: 256M
ports:
- "15672:15672"
volumes:
- "./rabbitmq_enabled_plugins:/etc/rabbitmq/enabled_plugins"
#Database
redis:
image: redis
container_name: db_redis
#cpu_shares: 30
#mem_limit: 256M
ports:
- "6379:6379"