Install
Preparation
- You need to have a NAS or personal server based on x86 architecture;
- MT Photos is based on Docker, you need to install Docker in advance, please refer to Official Installation Documentation for the installation method;
- It is recommended that the total memory of NAS and server should be more than 2G;
How it works
MT Photos not only supports importing existing photos and videos; it also supports backing up mobile phone albums from the App; Just map the folder where the photos and videos are located to the Docker container;
Install
Here, the command line is used to install, and there will be specific graphic tutorials for the commonly used NAS system;
1. Download the latest Docker image;
docker pull mtphotos/mt-photos:latest
2. New folders: mt_photos/config, mt_photos/upload
After the Docker container is deleted, the files in the container will also be deleted, so the host needs to map the folder to the container to continuously save data and files;
Hint: Please replace /appdata with an appropriate path according to the actual directory structure in your NAS;
mkdir /appdata/mt_photos/config
mkdir /appdata/mt_photos/upload
config folder: used to store cache files such as database files, thumbnails, preview videos, etc. upload folder: used to store photos and videos backed up by the app
3. Create and start the container;
docker run -d \
--name mt-photos \
-v /appdata/mt_photos/config:/config \
-v /appdata/mt_photos/upload:/upload \
-v /photos/folder1:/folder1 \
-v /photos/folder2:/folder2 \
-p 8063:8063 \
-e TZ=Asia/Shanghai \
--restart unless-stopped \
mtphotos/mt-photos
illustrate:
/appdata/mt_photos/config
,/appdata/mt_photos/upload
are the folders created in the previous step, these two are directories that must be mapped/photos/folder1
,/photos/folder2
are the folders where the existing photos and videos are located; you can add the directories that need to be mapped according to the actual situation, the number is unlimited
Initialize the installation
After the container runs successfully, it needs to be initialized and installed;
- Open the web page: http://192.168.1.10:8063/ ,
192.168.1.10
is the IP of NAS, and8063
is the mapped port number - Select the language of the system
- Create an administrator account
- Set up the gallery
- Configure face recognition, GPS information recognition and other functions
Next step
Please refer to the Install Guide for the graphic process.