I tried to follow this guide to move (all) of my volumes to another location. https://mailcow.github.io/mailcow-dockerized-docs/u_e-dovecot-vmail-volume/
In my case /opt/mailcow-dockerized/volumes/...
It does not work with the “migration” explained in the documentation and not with a fresh installation.
Error message is: ERROR: for postfix-mailcow Cannot start service postfix-mailcow: error while mounting volume '/var/lib/docker/volumes/mailcowdockerized_rspamd-vol-1/_data': failed to mount local volume: mount /opt/mailcow-dockerized/volumes/mailcowdockerized_rspamd-vol-1:/var/lib/docker/volumes/mailcowdockerized_rspamd-vol-1/_data, data: bindreboo: no such device
In my case the whole dir /opt/mailcow-dockerized/
is already mounted from device /dev/vdb1
via mount /dev/vdb1 /opt/mailcow-dockerized
My docker-compose.override.yml looks like this:
version: '2.1'
volumes:
vmail-vol-1:
driver_opts:
type: none
device: /opt/mailcow-dockerized/volumes/mailcowdockerized_vmail-vol-1
o: bind
mysql-vol-1:
driver_opts:
type: none
device: /opt/mailcow-dockerized/volumes/mailcowdockerized_mysql-vol-1
o: bind
redis-vol-1:
driver_opts:
type: nonels
device: /opt/mailcow-dockerized/volumes/mailcowdockerized_redis-vol-1
o: bind
rspamd-vol-1:
driver_opts:
type: none
device: /opt/mailcow-dockerized/volumes/mailcowdockerized_rspamd-vol-1
o: bindreboo
postfix-vol-1:
driver_opts:
type: none
device: /opt/mailcow-dockerized/volumes/mailcowdockerized_postfix-vol-1
o: bind
crypt-vol-1:
driver_opts:
type: none
device: /opt/mailcow-dockerized/volumes/mailcowdockerized_crypt-vol-1
o: bind
mysql-socket-vol-1:
driver_opts:
type: none
device: /opt/mailcow-dockerized/volumes/mailcowdockerized_mysql-socket-vol-1
o: bind
sogo-userdata-backup-vol-1:
driver_opts:
type: none
device: /opt/mailcow-dockerized/volumes/mailcowdockerized_sogo-userdata-backup-vol-1
o: bind
sogo-web-vol-1:
driver_opts:
type: none
device: /opt/mailcow-dockerized/volumes/mailcowdockerized_sogo-web-vol-1
o: bind
solr-vol-1:
driver_opts:
type: none
device: /opt/mailcow-dockerized/volumes/mailcowdockerized_solr-vol-1
o: bind
vmail-attachments-vol-1:
driver_opts:
type: none
device: /opt/mailcow-dockerized/volumes/mailcowdockerized_vmail-attachments-vol-1
o: bind