Skip to content

Portainer Example #668

Answered by DevilaN
JTHesse asked this question in Q&A
Mar 1, 2024 · 4 comments · 3 replies
Discussion options

You must be logged in to vote

Swarm is dedicated to deploy things, not to build them.
You still need multiple step process here, like:

  1. Overriden image names in docker-compose.override.yml that are pointing to your private docker registry.
  2. Git hook that builds image each time you pull new commits for repo. Then it pushes that image to registry.
  3. Separate docker-compose.yml only for deploying purposes, written by you to work with swarm.
  4. Additional swarm service that monitors registry and redeploy service when there is new image.

Profiles are meant to be used to separate parts of stack and run only "production" or "development" apps locally.
In most use cases you don't want to have profiles in your swarm stack. If you n…

Replies: 4 comments 3 replies

Comment options

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

Comment options

You must be logged in to vote
2 replies
@JTHesse
Comment options

@JTHesse
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by JTHesse
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
3 participants