How to change Docker ENV variable (change ROOT_URL)
See original GitHub issueIssue
Impacted version: 0.62
Server Setup Information:
- Operating System: Ubuntu 14.04
- Deployment Method: Docker
- Node Version: v4.8.6
- MongoDB Version: 3.2.18
- ROOT_URL environment variable (Is there a subfolder?): plesk.example.org:4000
Problem description:
We want to change the ROOT_URL ENV from plesk.example.org:4000 to board.example.org
So I’ve set a proxy rule for my board.example.org vhost:
ProxyPassMatch "^/(sockjs\/.*\/websocket)$" "ws://127.0.0.1:4000/$1"
ProxyPass "/" "http://127.0.0.1:4000/"
ProxyPassReverse "/" "http://127.0.0.1:4000/"
Now I want to change the ROOT_URL, what is the best approach?
Issue Analytics
- State:
- Created 6 years ago
- Comments:19 (9 by maintainers)
Top Results From Across the Web
How to change ROOT_URL in docker-compose with ...
You can change the ROOT_URL environment variable, then issue the command, where you docker-compose.yml is: docker-compose up -d.
Read more >How to change root_url at runtime? - Configuration
We are deploying through docker and if it's possible to se… ... file (listed below) can be overridden using environment variables.
Read more >Environment variables in Compose
You can set default values for any environment variables referenced in the Compose file, or used to configure Compose, in an environment file...
Read more >Environment Variables | Meteor API Docs
List of environment variables that you can use with your Meteor application. ... Setting DDP_DEFAULT_CONNECTION_URL when running a meteor server ...
Read more >Changing environment variables for Docker existing ...
I think you are not meant to overwrite environment variables for a running container, you should just stop the running one and start...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@Michael2222
Then change ROOT_URL in docker-compose.yml