2015-07-16 18:43:02 +03:00
|
|
|
postgres:
|
|
|
|
image: postgres:9.4
|
|
|
|
volumes:
|
|
|
|
- /data/{{cookiecutter.repo_name}}/postgres:/var/lib/postgresql/data
|
2015-08-18 18:50:20 +03:00
|
|
|
env_file: .env
|
2015-07-16 18:43:02 +03:00
|
|
|
|
|
|
|
django:
|
|
|
|
build: .
|
2015-08-18 18:50:20 +03:00
|
|
|
user: django
|
2015-07-16 18:43:02 +03:00
|
|
|
links:
|
|
|
|
- postgres
|
2015-07-21 11:22:02 +03:00
|
|
|
- redis
|
2015-07-16 18:43:02 +03:00
|
|
|
command: /gunicorn.sh
|
2015-08-18 18:50:20 +03:00
|
|
|
env_file: .env
|
2015-07-16 18:43:02 +03:00
|
|
|
|
|
|
|
nginx:
|
|
|
|
build: ./compose/nginx
|
|
|
|
links:
|
|
|
|
- django
|
|
|
|
ports:
|
|
|
|
- "0.0.0.0:80:80"
|
|
|
|
|
2015-07-21 11:22:02 +03:00
|
|
|
redis:
|
|
|
|
image: redis:3.0
|
2015-08-18 18:50:20 +03:00
|
|
|
{% if cookiecutter.use_celery == 'y' %}
|
2015-07-16 18:43:02 +03:00
|
|
|
celeryworker:
|
|
|
|
build: .
|
2015-08-18 18:50:20 +03:00
|
|
|
user: django
|
|
|
|
env_file: .env
|
2015-07-16 18:43:02 +03:00
|
|
|
links:
|
|
|
|
- postgres
|
2015-07-21 11:22:02 +03:00
|
|
|
- redis
|
2015-08-18 18:50:20 +03:00
|
|
|
command: celery -A {{cookiecutter.repo_name}}.taskapp worker -l INFO
|
2015-07-16 18:43:02 +03:00
|
|
|
|
|
|
|
celerybeat:
|
|
|
|
build: .
|
2015-08-18 18:50:20 +03:00
|
|
|
user: django
|
|
|
|
env_file: .env
|
2015-07-16 18:43:02 +03:00
|
|
|
links:
|
|
|
|
- postgres
|
2015-07-21 11:22:02 +03:00
|
|
|
- redis
|
2015-08-18 18:50:20 +03:00
|
|
|
command: celery -A {{cookiecutter.repo_name}}.taskapp beat -l INFO
|
2015-07-16 18:43:02 +03:00
|
|
|
{% endif %}
|