##// END OF EJS Templates
New template, clean code, workig for realtime
New template, clean code, workig for realtime

File last commit:

r16:7151452b8eb5
r21:dc5f8680b6e1
Show More
docker-compose.yml
56 lines | 1016 B | text/x-yaml | YamlLexer
version: '2'
services:
web:
container_name: 'realtime'
build: .
restart: always
image: realtime
command: python manage.py runserver 0.0.0.0:8000
env_file: .env
ports:
- "8000:8000"
links:
- redis
- mongo
volumes:
- './:${APP_DIR}'
depends_on:
- redis
- mongo
zmq_server:
container_name: 'realtime_zmq'
restart: always
image: 'realtime'
ports:
- '4444:4444'
command: 'python -u scripts/server.py'
env_file: .env
links:
- redis
- mongo
volumes:
- './:${APP_DIR}'
depends_on:
- web
redis:
container_name: 'realtime_redis'
image: 'redis:3.2-alpine'
ports:
- '127.0.0.1:6379:6379'
volumes:
- 'redisdata:/data'
mongo:
container_name: 'realtime_mongo'
image: 'mongo:3.3'
command: '--storageEngine wiredTiger'
ports:
- '127.0.0.1:27017:27017'
volumes:
- 'mongodata:/data/db'
volumes:
redisdata:
mongodata: