Refactor docker compose, .env file doc #80
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Prerequisites
Related PRs renaming/modifying env vars: checkmarble/marble-frontend#721, checkmarble/marble-backend#877
I made some changes to variable naming & expected format so that the backend and frontend use the same conventions, and variables have the name that matches their expected format.
Link
View the doc on the branch: https://github.com/checkmarble/marble/blob/pascal/improve-deployment-doc/installation/README.md
Content
I tried to make it as complete as possible, while minimizing the duplication of source of truth (which was not always easy).
I reached the point where I need to let it rest a bit and perhaps get a fresh look on it.
All the detailed explanation on configuring the environment variables on frontend & backend are in .env.example + docker-compose.yaml (single source of truth).
A really simplified setup for local testing is in docker-compose-dev.yaml + env.dev.example.
The more high level explanations on dependencies, quick start, how to configure, target architecture, version support policy & migrations is in the installation folder, with README.md as the entry point that links to some more detailed files.