Migrating all settings from all-in-one docker container to docker-compose

After some connection issues with database I decided to move to docker-compose, but I need to move all my settings to it, so what is the container path and which container should I add the volume (there is at least 4 different containers now)? The screenshot below show the current path I'm using the official docker-compose and that all-in-one is ghcr.io/imagegenius/immich:latest
No description
6 Replies
Chriexpe
ChriexpeOP2y ago
these are the files inside the /immich folder
No description
martabal
martabal2y ago
Hi, one of the AIO image maintainer here. You don’t have to keep the folders in your appdata. All data in it are re-synced, downloaded on immich startup.
Chriexpe
ChriexpeOP2y ago
Thanks, but if it's not necessary, why immich doesn't pick the settings and all files? given that the UPLOAD_LOCATION is set to the same folder as that AIO image? I did try exporting that .json and then adding on .env the location of it "IMMICH_CONFIG_FILE=/mnt/disk1/appdata/immich/" but then Immich wouldn't work, with " 500 connect ECONNREFUSED 172.23.0.7:3001" error message when accessing the UI
martabal
martabal2y ago
The upload location is different for the AIO image We use the IMMICH_MEDIA_LOCATION env to precise the media location (it’s set to /photos) so we don’t have to use symlinks Furthermore, you have to update all your assets path in the db
martabal
martabal2y ago
You can take a look at the migration script we used months ago here https://github.com/imagegenius/docker-immich/blob/main/root/defaults/migrate.py
GitHub
docker-immich/root/defaults/migrate.py at main · imagegenius/docker...
Monolithic (Single) Docker Container for Immich. Contribute to imagegenius/docker-immich development by creating an account on GitHub.
martabal
martabal2y ago
IMO, the best way to migrate would be to create a new immich instance with the docker-compose and import your assets using the CLI or the new library feature

Did you find this page helpful?