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
  1. ./launcher destroy app

  2. mv app.yml initech.yml

  3. ./launcher rebuild initech

  4. Profit (no data is lost)

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