Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docker deployment #17

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

vemonet
Copy link

@vemonet vemonet commented Apr 20, 2022

This pull request add the files required to easily deploy LDShapes from the source code using docker-compose:

  • backend/Dockerfile
  • frontend/Dockerfile
  • docker-compose.yml
  • .dockerignore

I also made a change to the helper.ts file to get the backend URL from the BACKEND_URL environment variable (you might want to test this works properly with your local deployment)

And added instructions to deploy with docker-compose up in the README.md

Currently it is built to be able to quickly build and start LDShapes in docker containers, and avoid versioning errors (cf. #16). It could be improved to be more optimized for production deployments or development settings depending of the use people want to have with it

vemonet added 2 commits April 20, 2022 11:42
…nore to enable deploying the stack easily with docker. I added a change in the helper.ts to enable to define the backend URL through the BACKEND_URL environment variable (it defaults to http://localhost:3000 if the variable is not defined)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant