Skip to content

Docker-based Dokku deployment with multiple processes in one app #7262

Answered by jokulamoko
jokulamoko asked this question in Q&A
Discussion options

You must be logged in to vote

ok I have stumbled across a solution.

  1. Add DYNO vars for each service e.g.
dokku config:set backend DYNO_WEB=web.1
dokku config:set backend DYNO_WORKER=worker.1
  1. Disable healthchecks (not desireable, but this is the only way you can avoid having the CMD line in your Dockerfile as far as I've worked out)
dokku checks:disable backend web,worker
  1. Reference the DYNO vars in your Procfile:
web: DYNO=$DYNO_WEB /app/dokku/entrypoint.sh
worker: DYNO=$DYNO_WORKER /app/dokku/entrypoint.sh
  1. Update your entrypoint.sh appropriately, to use the DYNO var to determine how to start the service
  2. Push/deploy
  3. Scale your non-web services
    dokku ps:scale backend worker=1 web=1

This doesn't feel like an id…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jokulamoko
Comment options

Answer selected by jokulamoko
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy