How to migrate Docker Compose config to Kamal with two Dockerfiles for frontend and backend apps #1649
Unanswered
tom-spalding
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I have the following
docker-compose.ymlscript I'm migrating to Kamaldeploy.yml. I'm having difficulty finding the equivalent way to set upbuild: ./frontend&build: ./backendlike Docker Compose. Has anyone ran into this before making a frontend and backend app deploy with Kamal? Both apps are in one Git repo.For completeness I'm including the db setup, but mostly I'm looking at the
webandapiunderservicesindocker-compose.yml.docker-compose.yml:Please forgive the find-and-replace cat placeholders.
The Docker Compose
buildoption allows me to have two Dockerfiles for the frontend and backend apps. For historical reasons they weren't built at the same time.backend/Dockerfile:frontend/Dockerfile:Is it okay to have multiple Dockerfiles in a git repo with Kamal? or should I change course?
Thanks all.
Beta Was this translation helpful? Give feedback.
All reactions