Config changes lost on docker container restart


(Rahul Bansal) #1

Hello All,

I followed - discourse/INSTALL-digital-ocean.md at master 路 discourse/discourse 路 GitHub . Site is up and running. :smile:

However, I configured smtp provider as Gmail and now I ran into sending limits.

I ssh鈥檈d into container using on host machine: cd /var/discourse && ./launcher ssh app

Changed smtp settings in config file: /var/www/discourse/config/discourse.conf

Unable to figure out, how to force settings to take effect, I restarted container using command (on host machine) => cd /var/discourse && ./launcher restart app

My changes did not get saved! But changes I am making to database are getting saved.

Can anybody please guide me? Isn鈥檛 docker supposed to changes by default? If no, what is manual way and how it will affect future user uploads (in case of accidental restart of container)?

Thanks.


(Sam Saffron) #2

you never change stuff there, it is all available in the env: node in your container config.


(Rahul Bansal) #3

@sam Thanks for checking this.

I updated config files outside and ran rebuild command. I followed this guide - Advanced Setup and Administration

I am still clueless as why postgres and user uploads remains persistent. May be they are stored outside (I guess answer to this part lies in docker. Need to explore it more).

This topic can be closed. :smile:


(Sam Saffron) #4

pg and redis are mounted outside containers are disposable by design.


(Sam Saffron) #5