[SOLVED] Docker – Celery cannot connect to redis

Issue Project structure: client nginx web/ celery_worker.py project config.py api/ I have the following services in my docker-compose: version: ‘3.6’ services: web: build: context: ./services/web dockerfile: Dockerfile-dev volumes: – ‘./services/web:/usr/src/app’ ports: – 5001:5000 environment: – FLASK_ENV=development – APP_SETTINGS=project.config.DevelopmentConfig – DATABASE_URL=postgres://postgres:[email protected]:5432/web_dev

Continue reading

[SOLVED] Sidekiq Error connecting to Redis on 127.0.0.1:6379 (Errno::ECONNREFUSED) on docker-compose

Issue I’m trying to run sidekiq worker with Rails. When I try to docker-compose up worker I get the following error: worker_1 | Error connecting to Redis on 127.0.0.1:6379 (Errno::ECONNREFUSED) worker_1 | /home/app/Nyvur/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:332:in `rescue in establish_connection’ worker_1 | /home/app/Nyvur/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:318:in `establish_connection’

Continue reading