Docker Compose Issues with Latest Docker

When things don't work as they should.
Post Reply
FlightdeckRob
Posts: 17
Joined: Wed Oct 03, 2018 3:54 pm

Docker Compose Issues with Latest Docker

Post by FlightdeckRob » Tue Dec 03, 2019 3:21 pm

Hi,

I'm getting the following errors when I use the standard docker-compose file. To me it seems like it's ignoring the environmental variable that specifying the username and password for the broker. I haven't change anything other than the DB password from the standard docker-compose file.

Code: Select all

mayan-edms-app | Trying again in 6.00 seconds...
mayan-edms-app |
mayan-edms-app | [2019-12-03 15:18:08,803: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:**@127.0.0.1:5672//: [Errno 111] Connection refused.
mayan-edms-app | Trying again in 8.00 seconds...
mayan-edms-app |
mayan-edms-app | [2019-12-03 15:18:09,591: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:**@127.0.0.1:5672//: [Errno 111] Connection refused.
mayan-edms-app | Trying again in 8.00 seconds...
mayan-edms-app |
mayan-edms-app | [2019-12-03 15:18:09,593: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:**@127.0.0.1:5672//: [Errno 111] Connection refused.
mayan-edms-app | Trying again in 8.00 seconds...
mayan-edms-app |
mayan-edms-app | [2019-12-03 15:18:16,844: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:**@127.0.0.1:5672//: [Errno 111] Connection refused.
mayan-edms-app | Trying again in 10.00 seconds...
mayan-edms-app |
mayan-edms-app | [2019-12-03 15:18:17,614: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:**@127.0.0.1:5672//: [Errno 111] Connection refused.
mayan-edms-app | Trying again in 10.00 seconds...
mayan-edms-app |
mayan-edms-app | [2019-12-03 15:18:17,634: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:**@127.0.0.1:5672//: [Errno 111] Connection refused.
mayan-edms-app | Trying again in 10.00 seconds...

Code: Select all

version: '2.1'

volumes:
    broker:
        driver: local
    app:
        driver: local
    db:
        driver: local
    results:
        driver: local

services:
  broker:
    container_name: mayan-edms-broker
    image: healthcheck/rabbitmq
    environment:
      RABBITMQ_DEFAULT_USER: mayan
      RABBITMQ_DEFAULT_PASS: mayan
      RABBITMQ_DEFAULT_VHOST: mayan
    volumes:
      - broker:/var/lib/rabbitmq
  results:
    container_name: mayan-edms-results
    image: healthcheck/redis
    volumes:
      - results:/data
  db:
    container_name: mayan-edms-db
    image: healthcheck/postgres
    environment:
      POSTGRES_DB: mayan
      POSTGRES_PASSWORD: mayan-password
      POSTGRES_USER: mayan
    volumes:
      - db:/var/lib/postgresql/data
  mayan-edms:
    container_name: mayan-edms-app
    image: mayanedms/mayanedms:latest
    depends_on:
      broker:
        condition: service_healthy
      db:
        condition: service_healthy
      results:
        condition: service_healthy
    environment:
      MAYAN_BROKER_URL: amqp://mayan:mayan@broker:5672/mayan
      MAYAN_CELERY_RESULT_BACKEND: redis://results:6379/0
      MAYAN_DATABASE_ENGINE: django.db.backends.postgresql
      MAYAN_DATABASE_HOST: db
      MAYAN_DATABASE_NAME: mayan
      MAYAN_DATABASE_PASSWORD: mayan-password
      MAYAN_DATABASE_USER: mayan
    ports:
      - "80:8000"
    volumes:
      - app:/var/lib/mayan
Anyone have and ideas what's going on or how to fix it?

Thanks,

Rob

User avatar
rosarior
Posts: 457
Joined: Tue Aug 21, 2018 3:28 am

Re: Docker Compose Issues with Latest Docker

Post by rosarior » Tue Dec 03, 2019 6:26 pm

Hi,

To fully support Python 3 we had to upgrade the version of Celery used. This new version of Celery changed the broker settings and so we also had to update the setting name.

Code: Select all

MAYAN_BROKER_URL
is now:

Code: Select all

MAYAN_CELERY_BROKER_URL
https://docs.mayan-edms.com/releases/3. ... pendencies

FlightdeckRob
Posts: 17
Joined: Wed Oct 03, 2018 3:54 pm

Re: Docker Compose Issues with Latest Docker

Post by FlightdeckRob » Tue Dec 03, 2019 7:33 pm

Thanks!

Post Reply