version: '2' services: db: restart: always image: postgres environment: POSTGRES_USER: 'dokumentor' POSTGRES_PASSWORD: 'dokumentor' volumes: - ./data:/var/lib/postgresql/data rabbitmq: restart: always image: rabbitmq:latest environment: RABBITMQ_DEFAULT_USER: 'dokumentor' RABBITMQ_DEFAULT_PASS: 'dokumentor' ports: - "8080:15672" - "5672:5672" - "5671:5671" celery: restart: always build: context: . dockerfile: compose/Dockerfile.web.local command: bash -c 'cd src && celery -A dokumentor worker -l info -E' volumes: - .:/code env_file: conf/env environment: DJANGO_DB: 'postgres://dokumentor:dokumentor@db:5432/dokumentor' REDIS_URL: 'redis://redis:6379/1' CELERY_BROKER_URL: 'amqp://dokumentor:dokumentor@rabbitmq:5672//' CELERY_RESULT_BACKEND: 'amqp://dokumentor:dokumentor@rabbitmq:5672//' links: - db - rabbitmq - redis redis: restart: always image: redis:latest ports: - '6379:6379' web: restart: always build: context: . dockerfile: compose/Dockerfile.web.local command: bash -c 'python src/manage.py runserver 0.0.0.0:8000' volumes: - .:/code entrypoint: bin/docker-local-entrypoint.sh ports: - "8000:8000" env_file: conf/env environment: DJANGO_DB: 'postgres://dokumentor:dokumentor@db:5432/dokumentor' REDIS_URL: 'redis://redis:6379/1' CELERY_BROKER_URL: 'amqp://dokumentor:dokumentor@rabbitmq:5672//' CELERY_RESULT_BACKEND: 'amqp://dokumentor:dokumentor@rabbitmq:5672//' depends_on: - db - rabbitmq - redis