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

(Andre Kosak) #1

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?

(Jay Pfaffman) #2

This worked for me:

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

(Jay Pfaffman) #3

OH, but isn’t that what DOCKER_USE_HOSTNAME does?

(Andre Kosak) #4

that helped me also. thanks!

(Sam Saffron) #5
./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.

(system) automatically bumped #6

(Joshua Rosenfeld) closed #7