<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Changing DB password in Docker composition without breaking access in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/changing-db-password-in-docker-composition-without-breaking/m-p/100148#M28937</link>
    <description>&lt;P&gt;Thank you very much for your detailed answer! I'll try it asap and then accept it as a solution.&lt;/P&gt;&lt;P&gt;I've based my environment on this composition: &lt;A href="https://github.com/keensoft/docker-alfresco" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/keensoft/docker-alfresco&lt;/A&gt;, and then changed a few things in the configuration files (mostly in relation to ssl and the domain name).&lt;/P&gt;&lt;P&gt;The alfresco-global.properties file is stored in one of the volumes mounted on the host, some Java options - including the DB user and password - for alfresco are also defined in the docker-compose.yml file: &lt;A href="https://github.com/keensoft/docker-alfresco/blob/master/docker-compose.yml" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/keensoft/docker-alfresco/blob/master/docker-compose.yml&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Oct 2019 21:30:06 GMT</pubDate>
    <dc:creator>nicospor</dc:creator>
    <dc:date>2019-10-15T21:30:06Z</dc:date>
    <item>
      <title>Changing DB password in Docker composition without breaking access</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/changing-db-password-in-docker-composition-without-breaking/m-p/100142#M28931</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a running Docker instance of Alfresco Community 6.0 in production and I would like to change the password to connect to the Postgres database.&lt;/P&gt;&lt;P&gt;This seems to be feasible by simply changing the respective variables in the docker-compose.yml file, that is:&lt;/P&gt;&lt;PRE&gt;Ddb.username
Ddb.password
POSTGRES_PASSWORD&lt;/PRE&gt;&lt;P&gt;However, I was wondering if by doing this the Share application will no longer be able to access the database, i.e. existing accounts will no longer work.&lt;/P&gt;&lt;P&gt;I've tried this in a test environment (by first rebuilding and recreating the composition), and I was no longer able to access with the admin account.&lt;/P&gt;&lt;P&gt;Since the database and content library hasn't yet been populated that much (and also existing users are few), maybe I should just recreate everything and restore the backup?&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 14:46:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/changing-db-password-in-docker-composition-without-breaking/m-p/100142#M28931</guid>
      <dc:creator>nicospor</dc:creator>
      <dc:date>2019-10-14T14:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Changing DB password in Docker composition without breaking access</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/changing-db-password-in-docker-composition-without-breaking/m-p/100143#M28932</link>
      <description>&lt;P&gt;Share only accesses the repository application which in turn accesses the database. Are you familiar with starting and stopping containers? This is possible, but there are some nuances.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 17:27:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/changing-db-password-in-docker-composition-without-breaking/m-p/100143#M28932</guid>
      <dc:creator>jljwoznica</dc:creator>
      <dc:date>2019-10-14T17:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Changing DB password in Docker composition without breaking access</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/changing-db-password-in-docker-composition-without-breaking/m-p/100144#M28933</link>
      <description>&lt;P&gt;Hi, thanks.&lt;/P&gt;&lt;P&gt;I'm new to Docker, I usually stop all containers with&lt;/P&gt;&lt;PRE&gt;docker-compose down&lt;/PRE&gt;&lt;P&gt;and start them all up again with&lt;/P&gt;&lt;PRE&gt;docker-compose up --force-recreate&lt;/PRE&gt;&lt;P&gt;I guess I could just stop/start invididual containers with docker-compose stop/start.&lt;/P&gt;&lt;P&gt;Should I first stop only the database container with changed password and then start it again? Should I also edit the alfresco-global.properties config file, rather than just the YAML file?&lt;/P&gt;&lt;P&gt;Thanks again for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 18:49:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/changing-db-password-in-docker-composition-without-breaking/m-p/100144#M28933</guid>
      <dc:creator>nicospor</dc:creator>
      <dc:date>2019-10-14T18:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Changing DB password in Docker composition without breaking access</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/changing-db-password-in-docker-composition-without-breaking/m-p/100145#M28934</link>
      <description>&lt;P&gt;Production envoriment must have named volumes for at least: alfresco repository, solr indexes and database. All data will stored into hosts folders independently of docker containers. So rebuilding and restarting of containers don't influens on data.&lt;/P&gt;&lt;P&gt;DB password present in alfresco-global.properties and&amp;nbsp;&lt;SPAN&gt;docker-compose.yml. So as I understend theoreticaly you should: &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;stop all containers exept postgres; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;connect to database&amp;nbsp;in an accessible to you way and change password of alfresco database.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;edit the password in the&amp;nbsp;alfresco-global.properties and&amp;nbsp;docker-compose.yml&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;rebuild containers&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;restart docker-compose&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;I give you only the way to go on&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 18:58:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/changing-db-password-in-docker-composition-without-breaking/m-p/100145#M28934</guid>
      <dc:creator>fedorow</dc:creator>
      <dc:date>2019-10-14T18:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Changing DB password in Docker composition without breaking access</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/changing-db-password-in-docker-composition-without-breaking/m-p/100146#M28935</link>
      <description>&lt;P&gt;The environment does indeed have named volumes mounted on the host for alf repo, solr and database data. The data seem to be stored there correctly.&lt;/P&gt;&lt;P&gt;I'll try running psql to change the password by executing it in the container through docker.&lt;/P&gt;&lt;P&gt;When you say "rebuild containers" do you mean "docker-compose build" for indivudal containers?&lt;/P&gt;&lt;P&gt;Could I rebuild and restart everything by doing the following?&lt;/P&gt;&lt;PRE&gt;docker-compose up --build --force-recreate&lt;/PRE&gt;&lt;P&gt;Many thanks for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 20:07:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/changing-db-password-in-docker-composition-without-breaking/m-p/100146#M28935</guid>
      <dc:creator>nicospor</dc:creator>
      <dc:date>2019-10-14T20:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Changing DB password in Docker composition without breaking access</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/changing-db-password-in-docker-composition-without-breaking/m-p/100147#M28936</link>
      <description>&lt;P&gt;Grate, you do all right.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;docker-compose down&lt;/EM&gt;&amp;nbsp;stops and remove all conteiners. docker-compose up create new and start all containers. &lt;EM&gt;docker-compose stop &amp;lt;service&amp;gt;&lt;/EM&gt; stops the exact service.&lt;/P&gt;&lt;P&gt;Again:&lt;/P&gt;&lt;P&gt;1. Stop all containers exept database.&lt;/P&gt;&lt;PRE&gt;sudo docker-compose stop share
sudo docker-compose stop solr6
sudo docker-compose stop ...
sudo docker-compose stop alfresco&lt;/PRE&gt;&lt;P&gt;2. Change database password&lt;/P&gt;&lt;P&gt;3. Stop and remove all docker-compose instances.&lt;/P&gt;&lt;PRE&gt;sudo docker-compose down&lt;/PRE&gt;&lt;P&gt;4. Edit password into &lt;EM&gt;alfresco-global properties&lt;/EM&gt; and into&lt;SPAN&gt;&amp;nbsp;&lt;EM&gt;docker-compose.yml&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;5.&amp;nbsp;Make shure update &lt;EM&gt;alfresco-global.properties&lt;/EM&gt; in your alfresco image or connect updated&amp;nbsp;&lt;EM&gt;alfresco-global.properties&lt;/EM&gt;&amp;nbsp;to alfresco container.&amp;nbsp;It depends of your &lt;EM&gt;docker-compose.yml&lt;/EM&gt; configuration and your&amp;nbsp;&lt;EM&gt;Dockerfile&lt;/EM&gt;-s. I don't see it and can't give exact recomendations.&lt;/P&gt;&lt;P&gt;6. Restart docker compose by&lt;/P&gt;&lt;PRE&gt;sudo docker-compose up&lt;/PRE&gt;&lt;P&gt;Besides it's very important in production to clearly understand the docker-compose: images / conteiners / services / volumes / network.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 07:21:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/changing-db-password-in-docker-composition-without-breaking/m-p/100147#M28936</guid>
      <dc:creator>fedorow</dc:creator>
      <dc:date>2019-10-15T07:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Changing DB password in Docker composition without breaking access</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/changing-db-password-in-docker-composition-without-breaking/m-p/100148#M28937</link>
      <description>&lt;P&gt;Thank you very much for your detailed answer! I'll try it asap and then accept it as a solution.&lt;/P&gt;&lt;P&gt;I've based my environment on this composition: &lt;A href="https://github.com/keensoft/docker-alfresco" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/keensoft/docker-alfresco&lt;/A&gt;, and then changed a few things in the configuration files (mostly in relation to ssl and the domain name).&lt;/P&gt;&lt;P&gt;The alfresco-global.properties file is stored in one of the volumes mounted on the host, some Java options - including the DB user and password - for alfresco are also defined in the docker-compose.yml file: &lt;A href="https://github.com/keensoft/docker-alfresco/blob/master/docker-compose.yml" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/keensoft/docker-alfresco/blob/master/docker-compose.yml&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 21:30:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/changing-db-password-in-docker-composition-without-breaking/m-p/100148#M28937</guid>
      <dc:creator>nicospor</dc:creator>
      <dc:date>2019-10-15T21:30:06Z</dc:date>
    </item>
  </channel>
</rss>

