##// END OF EJS Templates
last changes
last changes

File last commit:

r334:ff9b4f433b43
r334:ff9b4f433b43
Show More
docker-compose.yml
70 lines | 1.4 KiB | text/x-yaml | YamlLexer
version: '2'
services:
# Django app
# web:
# container_name: 'radarsys'
# build: .
# restart: always
# image: radarsys
# command: gunicorn radarsys.wsgi:application -w 2 -b :8000
# # command: python manage.py runserver 0.0.0.0:8030
# # ports:
# # - 8030:8030
# env_file: .env
# links:
# - redis
# - postgres
# volumes:
# - './:/radarsys'
# - '${DOCKER_DATA}/static:/radarsys/static'
# depends_on:
# - redis
# - postgres
redis:
container_name: 'radarsys-redis'
image: 'redis:3.2-alpine'
volumes:
- '${DOCKER_DATA}/redis:/data'
ports:
- 6300:6379
celery_worker:
container_name: 'radarsys-celery'
image: radarsys
env_file: .env
command: celery -A radarsys worker -l info
# volumes_from:
# - web
# depends_on:
# - web
# PostgreSQL
postgres:
container_name: 'radarsys-postgres'
build: ./postgres/
volumes:
- ./postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- pgdata:/var/lib/postgresql/data
ports:
- 5400:5432
env_file: .env
# Web Server
# nginx:
# container_name: 'radarsys-nginx'
# restart: always
# build: ./nginx/
# ports:
# - '8030:8030'
# volumes_from:
# - web
# links:
# - web:web
# depends_on:
# - web
volumes:
pgdata:
driver: local