Context: I have a master-worker system on celery + rabbitmq stack.
System is dockerized( worker service is not presented here )
version: '2'
services:
rabbit:
hostname: rabbit
image: rabbitmq:latest
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=mypass
ports:
- "5672:5672"
master:
build:
context: .
dockerfile: dockerfile
volumes:
- .:/app
links:
- rabbit
depends_on:
- rabbit
When i execute docker-compose up - everything OK!

Problems: But I can't use docker-compose up, I need to use docker-compose master and docker-compose worker (two separate commands for worker and master machines). So, when I execute docker-compose master - the container launches, but hangs up!:

Research: I have found out, that it hangs up on task submitting:
result = longtime_add.delay(count) Where longtime_add is a task.
Full code: https://github.com/waryak/MastersDiploma/tree/vlad
Also, please, edit the title - I feel, that it needs more clear title