Docker: Improve example docker-compose.yml files

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-08-13 16:52:25 +02:00
parent e7ff43b3f3
commit 7f19cc3d27
2 changed files with 31 additions and 1 deletions

View File

@ -57,3 +57,25 @@ services:
- /photoprism/storage # Keep cache and settings when upgrading or restarting
- "~/Pictures/Originals:/photoprism/originals" # [local path]:[container path]
- "~/Pictures/Import:/photoprism/import" # [local path]:[container path] (optional)
# Uncomment the following lines to use MariaDB instead of SQLite for improved performance & scalability:
#
# photoprism-db:
# image: mariadb:10.5 # Alternatively mysql:8.0
# restart: unless-stopped
# command: mysqld --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=1024 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=50
# volumes:
# - /var/lib/mysql
# environment:
# MYSQL_ROOT_PASSWORD: photoprism
# MYSQL_USER: user
# MYSQL_PASSWORD: passwd
# MYSQL_DATABASE: photoprism
# Uncomment the following lines to upgrade automatically whenever there are new container images available:
#
# watchtower:
# restart: unless-stopped
# image: containrrr/watchtower
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock

View File

@ -56,7 +56,7 @@ services:
- "~/Pictures/Originals:/photoprism/originals" # [local path]:[container path]
- "~/Pictures/Import:/photoprism/import" # [local path]:[container path] (optional)
# Uncomment the following lines to use MariaDB instead of SQLite for improved performance & scalability
# Uncomment the following lines to use MariaDB instead of SQLite for improved performance & scalability:
#
# photoprism-db:
# image: mariadb:10.5 # Alternatively mysql:8.0
@ -69,3 +69,11 @@ services:
# MYSQL_USER: user
# MYSQL_PASSWORD: passwd
# MYSQL_DATABASE: photoprism
# Uncomment the following lines to upgrade automatically whenever there are new container images available:
#
# watchtower:
# restart: unless-stopped
# image: containrrr/watchtower
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock