I dont know what part I am missing but celery not conneting to redis when I am running docker-compose up --build error: Cannot connect to redis://127.0.0.1:6379/0: Error 111 connecting to 127.0.0.1: 6379. Connection refused.
Here is my file docker-compose.yml
version: '3' services: web: build: . image: resolution depends_on: - db - redis - celery command: bash -c "python3 /code/manage.py migrate && python3 /code/manage.py initialsetup && python3 /code/manage.py runserver 0.0.0.0:8000" volumes: - .:/code ports: - "8000:8000" links: - db:db - redis:redis - celery:celery restart: always environment: - POSTGRES_DB=postgres - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres - PGHOST=trust - PGPORT=5432 db: image: postgres:latest environment: POSTGRES_DB: 'postgres' POSTGRES_PASSWORD: 'postgres' POSTGRES_USER: 'postgres' POSTGRES_HOST: 'trust' redis: image: "redis:alpine" ports: - "6379:6379" restart: on-failure celery: image: resolution command: celery -A mayan worker -l info environment: - DJANGO_SETTINGS_MODULE=mayan.settings.production volumes: - .:/code depends_on: - db - redis links: - redis:redis restart: on-failure