Added Celery worker docker container

This docker container uses the Blender Cloud image, but a different entry
point. It is not intended to be network-reachable from the outside world.
All it needs are connections to the databases (mongo, redis, rabbit).
This commit is contained in:
2017-06-02 10:54:46 +02:00
parent c73efd5998
commit 9da841efc3
6 changed files with 44 additions and 20 deletions

View File

@@ -14,7 +14,7 @@ redis:
ports:
- "127.0.0.1:6379:6379"
rabbit:
image: rabbitmq:3.6.7
image: rabbitmq:3.6.10
container_name: rabbit
restart: always
ports:
@@ -36,6 +36,22 @@ blender_cloud:
links:
- mongo
- redis
- rabbit
celery_worker:
image: armadillica/blender_cloud:latest
entrypoint: /celery-worker.sh
container_name: celery_worker
restart: always
volumes:
# format: HOST:CONTAINER
- /data/git:/data/git:ro
- /data/config:/data/config:ro
- /data/storage/pillar:/data/storage/pillar
- /data/log:/var/log
links:
- mongo
- redis
- rabbit
# notifserv:
# container_name: notifserv
# image: armadillica/pillar-notifserv:cd8fa678436563ac3b800b2721e36830c32e4656