How to rename app.yml to myCompanyName.yml after deploy?

Hi everyone.

Someone has an idea how can i rename app.yml to another name and rebuild the container, not losing the data? I actually just want to change the name of the container, so that when i do docker ps i see myCompanyName as name of the container, and not just app?

This worked for me:

cd /var/discourse
cp containers/app.yml containers/name.yml
./launcher stop app
./launcher bootstrap name
./launcher start name
3 Likes

OH, but isn’t that what DOCKER_USE_HOSTNAME does?

1 Like

that helped me also. thanks!

./launcher destroy app
mv app.yml initech.yml
./launcher rebuild initech

That’s all, no data is lost.

All refs inside the container definition are hardcoded and do not depend on the yaml filename.

10 Likes