You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
x-kompass:
|
|
&kompass
|
|
image: kompass:production
|
|
env_file: docker.env
|
|
restart: always
|
|
depends_on:
|
|
- redis
|
|
- cache
|
|
|
|
services:
|
|
master:
|
|
<<: *kompass
|
|
build:
|
|
context: ./../../
|
|
dockerfile: docker/production/Dockerfile
|
|
entrypoint: /app/docker/production/entrypoint-master.sh
|
|
volumes:
|
|
- uwsgi_data:/tmp/uwsgi/
|
|
- web_static:/app/static/
|
|
- web_static:/var/www/jdav_web/static/
|
|
- ./media:/var/www/jdav_web/media/
|
|
|
|
nginx:
|
|
build: ./nginx/
|
|
restart: always
|
|
volumes:
|
|
- uwsgi_data:/tmp/uwsgi/
|
|
- web_static:/var/www/jdav_web/static/:ro
|
|
- ./media:/var/www/jdav_web/media/:ro
|
|
ports:
|
|
- "3000:80"
|
|
depends_on:
|
|
- master
|
|
|
|
cache:
|
|
restart: always
|
|
image: memcached:alpine
|
|
|
|
redis:
|
|
restart: always
|
|
image: redis:6-alpine
|
|
|
|
celery_worker:
|
|
<<: *kompass
|
|
entrypoint: /app/docker/production/entrypoint-celery-worker.sh
|
|
|
|
celery_beat:
|
|
<<: *kompass
|
|
entrypoint: /app/docker/production/entrypoint-celery-beat.sh
|
|
|
|
volumes:
|
|
uwsgi_data:
|
|
web_static:
|