version: '2' services: flask: build: . container_name: flask command: > gunicorn -b 0.0.0.0:5000 -w 4 "wsgi:app" volumes: - '$MUSTACHE_WORKSPACE:/app/workspace' - '.:/usr/src/app:ro' ports: - '5000:5000' links: - redis - celery celery: build: . container_name: celery command: "celery -A mustache.celery worker --loglevel=info" user: nobody links: - redis volumes: - '$MUSTACHE_WORKSPACE:/app/workspace' - '.:/usr/src/app:ro' redis: container_name: redis image: redis ports: - '6378:6379'