Replies: 3 comments 1 reply
-
That works like a charm for us :)
|
Beta Was this translation helpful? Give feedback.
-
I tried this, and had a terrible time getting Sidekiq to connect to my Redis container. After at least 6 hours of banging my head against the wall, I found this solution. Adding the special Here's the complete # deploy.yml
service: "app"
image: username/app
servers:
web:
hosts:
- [REDACTED_SERVER_IP_ADDRESS]
options:
"add-host": host.docker.internal:host-gateway # This does the trick
sidekiq:
cmd: bundle exec sidekiq
hosts:
- [REDACTED_SERVER_IP_ADDRESS]
options:
"add-host": host.docker.internal:host-gateway # Add it here too
env:
secret:
- REDIS_URL
accessories:
redis:
image: redis:7.0
host: [REDACTED_SERVER_IP_ADDRESS]
port: 6379
directories:
- data:/data After deploying, all containers on the same server can now see each other's ports as Finally I set the environment variable |
Beta Was this translation helpful? Give feedback.
-
what's the current best practice to start a standard solid_que worker on single instance VPS? the deployment is good, web is served. |
Beta Was this translation helpful? Give feedback.
-
What's your approach?
What do you recommend?
I'am using the example in the Readme to starting a job with a new host with same IP address and a different role.
Beta Was this translation helpful? Give feedback.
All reactions