How I deployed Loco using Docker on a Plesk server #279
LimpidCrypto
started this conversation in
Show and tell
Replies: 3 comments
-
Fantastic! 🚀 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Edit: docker-compose.ymlloco won't start up with - image: postgres:16-alpine
+ image: postgres:15.3-alpine Dockerfilemake your cli executable ...
+ RUN chmod +x /usr/app/website-cli
CMD ["/usr/app/website-cli", "start", "-e", "production"] copy your .env ...
+ COPY .env .env
COPY --from=npm-builder /usr/src/frontend/dist/frontend/browser /usr/app/frontend/dist/frontend/browser
... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Disclaimer
This is just meant to give you a general overview on how i managed to deploy my loco app. Do not take this as a good practice I'm actually curious about what I could do better :)
Post about how to deploy
Overview
docker-compose.yml
to your loco projectDockerfile
to your loco project.dockerignore
to your loco project.env
to your loco projectDisable nginx proxy mode (using Plesk)
This config assumes your loco app is running on localhost:3000
Add
docker-compose.yml
to your loco projectAdd
Dockerfile
to your loco projectAdd
.dockerignore
to your loco projectAdd
.env
to your loco projectThis deployment assumes you have your whole project on your server, not only the build.
Beta Was this translation helpful? Give feedback.
All reactions