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

Ensure compose deployments have configurable domain names on prod #2245

Open
spwoodcock opened this issue Mar 3, 2025 · 0 comments
Open
Labels
devops Related to deployment or configuration effort:low Likely a few hours enhancement New feature or request priority:low Backlog of tasks that will be addressed in time

Comments

@spwoodcock
Copy link
Member

Is your feature request related to a problem? Please describe.

  • Prior to Replace custom nginx / certbot config with BunkerWeb #1695 we had an easily configurable Nginx server with domain names injected at runtime.
  • After integrating BunkerWeb (for many reasons described in the PR), the domain name configuration is based on environment variable names, which cannot be dynamic in a compose.yaml.
    • For now, the domains are hardcoded for the HOTOSM domains.
  • Instead we will need to manually convert variable placeholders to their required values in dev/stage/prod.

Describe the solution you'd like

  • Using envsubst, we should add a stage where the compose files are processed first, with domains injected in.
  • Sometimes there are double nested variables, so we will need to run multiple times.
  • source .env --> envsubst -i in.yaml -o out.yaml --> docker compose ...

Describe alternatives you've considered

@spwoodcock spwoodcock added devops Related to deployment or configuration effort:low Likely a few hours enhancement New feature or request priority:low Backlog of tasks that will be addressed in time labels Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devops Related to deployment or configuration effort:low Likely a few hours enhancement New feature or request priority:low Backlog of tasks that will be addressed in time
Projects
None yet
Development

No branches or pull requests

1 participant