I am using rails, sidekiq and docker.
My docker-compose.yml file
sidekiq:
build: .
command: bundle exec sidekiq -C config/sidekiq.yml
links:
-
Try to mount the volumes. Your docker-compose
file should look like this (with PosgtreSQL as database) :
web:
build: .
volumes:
- .:/myapp
links:
- db
- redis
ports:
- "3000:3000"
command: bundle exec rails server -b 0.0.0.0
sidekiq:
build: .
volumes:
- .:/myapp
links:
- db
- redis
command: bundle exec sidekiq
db:
image: postgres
redis:
image: redis