##// END OF EJS Templates
Remove redis port and update containers names
Juan C. Espinoza -
r29:d5850278df50
parent child
Show More
@@ -1,4 +1,4
1 HOST_MONGO=mongo
2 HOST_REDIS=redis
1 HOST_MONGO=realtime_mongo
2 HOST_REDIS=realtime_redis
3 3 TZ=America/Lima
4 4 APP_DIR=/app No newline at end of file
@@ -1,57 +1,55
1 1 version: '2'
2 2
3 3 services:
4 4 web:
5 5 container_name: 'realtime'
6 6 build: .
7 7 restart: always
8 8 image: realtime
9 9 command: python manage.py runserver 0.0.0.0:8000
10 10 env_file: .env
11 11 ports:
12 12 - "8000:8000"
13 13 links:
14 14 - redis
15 15 - mongo
16 16 volumes:
17 17 - './:${APP_DIR}'
18 18 depends_on:
19 19 - redis
20 20 - mongo
21 21
22 22 zmq_server:
23 23 container_name: 'realtime_zmq'
24 24 restart: always
25 25 image: 'realtime'
26 26 ports:
27 27 - '4444:4444'
28 28 command: 'python -u scripts/server.py'
29 29 env_file: .env
30 30 links:
31 31 - redis
32 32 - mongo
33 33 volumes:
34 34 - './:${APP_DIR}'
35 35 depends_on:
36 36 - web
37 37
38 38 redis:
39 39 container_name: 'realtime_redis'
40 40 image: 'redis:3.2-alpine'
41 ports:
42 - '127.0.0.1:6379:6379'
43 41 volumes:
44 42 - 'redisdata:/data'
45 43
46 44 mongo:
47 45 container_name: 'realtime_mongo'
48 46 image: 'mongo:4.0'
49 47 command: '--storageEngine wiredTiger'
50 48 ports:
51 49 - '127.0.0.1:27017:27017'
52 50 volumes:
53 51 - 'mongodata:/data/db'
54 52
55 53 volumes:
56 54 redisdata:
57 55 mongodata: No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now