//192.168.11.245/Photos/LocalPhotos掛入
/root/Pictures
su - apk add cifs-utils cat <<EOF | tee /root/.smb > /dev/null username=jonathan password=xxxxxxx EOF chmod 600 /root/.smb mkdir -p /root/Pictures mount -t cifs -o credentials=/root/.smb //192.168.11.245/Photos/LocalPhotos /root/Pictures
rc-update add netmount echo "//192.168.11.245/Photos/LocalPhotos /root/Pictures cifs credentials=/root/.smb 0 0" >> /etc/fstab
wget https://dl.photoprism.app/docker/docker-compose.yml:
services:
photoprism:
## Use photoprism/photoprism:preview for testing preview builds:
image: photoprism/photoprism:latest
depends_on:
- mariadb
## Don't enable automatic restarts until PhotoPrism has been properly configured and tested!
## If the service gets stuck in a restart loop, this points to a memory, filesystem, network, or database issue:
## https://docs.photoprism.app/getting-started/troubleshooting/#fatal-server-errors
restart: unless-stopped
:
PHOTOPRISM_ADMIN_PASSWORD: "xxxxxxxxxx" # initial superadmin password (minimum 8 characters)
:
PHOTOPRISM_SITE_URL: "http://photoprism.ichiayi.com:2342/" # server URL in the format "http(s)://domain.name(:port)/(path)"
:
PHOTOPRISM_DATABASE_PASSWORD: "xxxxxxxxxx" # MariaDB or MySQL database user password
:
:
MARIADB_PASSWORD: "xxxxxxxxxx"
MARIADB_ROOT_PASSWORD: "xxxxxxxxxx"
:
docker-compose up -d