How to migrate Docker Compose config to Kamal with two Dockerfiles for frontend and backend apps #1649
Replies: 1 comment
-
|
It's been longtime you posted. 1 - make two distinct kamal configs which will deploy to the same server. In this case you can keep 2 distinct Dockerfile files More details here: Normally only the "web" role will get the proxy by default. But this could also be changed (in case you need your secondary role to be accessible externally via a domain name). Anyway, did you advance with your project? |
Beta Was this translation helpful? Give feedback.
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