Add Traefik Reverse Proxy with Let's Encrypt and Centralized Environment Configuration into docker-compose.yaml #414
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.
Description
This pull request introduces several key updates and improvements to the repository, including:
Addition of Traefik Configuration:
443
, with automated redirection from HTTP.traefik
with customizable entry points for HTTP and HTTPS and new certificate resolvers for better security.Improved
docker-compose.yml
Setup:x-common-environment
,x-api-environment
, andx-front-environment
), improving readability and maintainability./api
for API calls.Enhanced Routing and Domain Management:
/api
routes to the API, while the root path routes to the frontend..env
file template for customizable environment variables, facilitating deployments in different environments.docker-compose.yml
and.env
files to support domain templating and the new routing structure are included.Additional Documentation and Configurations:
docker-compose-old.yml
file was introduced for reference, documenting previous configurations and allowing easier migration to the new setup.Changes
.env
File: Added for centralized configuration management, supporting easier setup across various environments.docker-compose-old.yml
): Provides a backup of the previous configuration for reference and testing.Motivation and Context
This PR is intended to simplify and secure the deployment of the Lago services, leveraging Traefik for reverse proxy management and Let's Encrypt for SSL certificate handling. It also aims to streamline the environment configuration process, allowing easier setup and customizability for different deployment scenarios.
Types of changes
Breaking change with the current docker-compose, moving it into
docker-compose-old.yaml
for the moment