## To migrate from old selfhost installation to the latest
- You can use the [diff](update-from-old-selfhost.diff) to compare and update the `docker-compose.yml` configuration
- You can also follow the steps given below to update the configuration to the latest(Note that volume locations and service names are not changed but old ones are used in the steps given below)
- You can also follow the steps given below to update the configuration to the latest
- Please do run the following commands before starting:
- Add [freshclam.conf](../config/mail/clamav/freshclam.conf) to "config-static/mail/clamav/"
- Mount the file through an entry in "volumes" like `- /mnt/repo-base/config-static/mail/clamav/freshclam.conf:/etc/clamav/freshclam.conf`
- Update the `.conf` files in `config-static/mail/dovecot` directory according to the `.conf` files in the [repository](../config/mail/dovecot/)
- Update the `.conf` files in `config-static/mail/rspamd` directory according to the `.conf` files in the [repository](../config/mail/rspamd/)
- Add [freshclam.conf](../config/mail/clamav/freshclam.conf) to `config/mail/clamav/`
- Mount the file through an entry in "volumes" like `- /mnt/repo-base/config/mail/clamav/freshclam.conf:/etc/clamav/freshclam.conf`
- Update the `.conf` files in `/mnt/repo-base/config/mail/dovecot` directory according to the `.conf` files in the [repository](../config/mail/dovecot/)
- Update the `.conf` files in `/mnt/repo-base/config/mail/rspamd` directory according to the `.conf` files in the [repository](../config/mail/rspamd/)
1. `postfixadmin`
- Update image to `registry.gitlab.e.foundation/e/infra/docker-postfixadmin:2.0.1`
@@ -33,11 +95,14 @@
- POSTFIXADMIN_SMTP_PORT=587
```
- Remove the volume entry `- /mnt/repo-base/scripts/postfixadmin-mailbox-postdeletion.sh:/usr/local/bin/postfixadmin-mailbox-postdeletion.sh` as it is bundled in the image
- Update `eelomailserver` in `depends_on` to `mailserver`
1. `mariadb`
- Update image to `mariadb:10.3`
- Remove the volume entry `- /mnt/repo-base/config-dynamic/nextcloud/database:/docker-entrypoint-initdb.d`
- Add the [ecloud.cnf](../config/mariadb/ecloud.cnf) to `config-static/mariadb/` on your server
- Add the volume entry `- /mnt/repo-base/config-static/mariadb/:/etc/mysql/conf.d/:ro`
- Modify the db volume entry to use updated location
- Update `- /mnt/repo-base/volumes/mysql/db:/var/lib/mysql` to `- /mnt/repo-base/volumes/mysql/db/data:/var/lib/mysql`
- Add the [ecloud.cnf](../config/mariadb/ecloud.cnf) to `config/mariadb/` on your server
- Add the volume entry `- /mnt/repo-base/config/mariadb/:/etc/mysql/conf.d/:ro`
- Update the `x-fpm-overloads.conf` and `x-php-overloads.ini` files in `config-static/nextcloud/` using the files in [config/nextcloud](../config/nextcloud/) as reference
- Update the `x-fpm-overloads.conf` and `x-php-overloads.ini` files in `config/nextcloud/` using the files in [config/nextcloud](../config/nextcloud/) as reference
- Update the volume entries for the nextcloud service:
- Update `datadirectory` to have value `/var/www/data`
- Update `logfile` to have value `/var/www/log/nextcloud.log`
1. `create-account`: Remove the `create-account` service as it is no longer used
1. `nginx`
- Update image to `nginx:1.19-alpine`
- Set `restart` value to `unless-stopped`
- Remove `create-account` from the `depends_on` entry
- Update the files in `config-static/nginx/params` using the files in [config/nginx/params](../config/nginx/params/) for reference
- Update the configs in `config-dynamic/nginx/sites-enabled/` using the configs in [templates/nginx/sites-enabled](../templates/nginx/sites-enabled/) in repository for reference
- Remove `onlyoffice-community-server` from the `depends_on` entry if it exists
- Update `eelomailserver` in `depends_on` to `mailserver`
- Update the volume entries for the `nginx` service:
- Update the files in `config/nginx/params` using the files in [config/nginx/params](../config/nginx/params/) for reference
- Update the configs in `config/nginx/sites-enabled/` using the configs in [templates/nginx/sites-enabled](../templates/nginx/sites-enabled/) in repository for reference
1. `automx`
- Update image to `registry.gitlab.e.foundation/e/infra/docker-mailstack:automx-0.1.0`