totara / totara-docker-dev

A docker setup to create a development environment for Totara Learn
MIT License
49 stars 32 forks source link

Update postgres images, make sure all db services have versions in them #250

Closed derschatta closed 1 year ago

derschatta commented 1 year ago

Addresses #159

This requires a few steps when you are using the affected services (mysql, mssql, pgsql, mariadb):

  1. Stop the container, e.g. tstop mysql
  2. Remove the old container, e.g. docker container rm totara_mysql57
  3. Pull the changes
  4. Then start the container with tdocker up -d --remove-orphans mysql57

If you follow these steps the data should still be there. Of course you need to update your config.php to connect to mysql57 instead of mysql.

derschatta commented 1 year ago

Thanks @NathanielWalmsley but the container we renamed is pgsql -> pgsql12. Probably best to try that one too.

derschatta commented 1 year ago

rebased path as well