photoprism/docker-compose.prod.yml

36 lines
1.4 KiB
YAML
Raw Normal View History

2018-09-13 20:54:34 +02:00
version: '3.3'
# Example docker-compose config file for production use
# Usage: docker-compose -f docker-compose.prod.yml up
2018-09-13 20:54:34 +02:00
services:
2018-09-18 15:13:02 +02:00
photoprism: # change if needed
image: photoprism/photoprism # use pre-built image from docker hub: https://hub.docker.com/r/photoprism/photoprism/
restart: always
2018-09-13 20:54:34 +02:00
ports:
2018-09-18 15:13:02 +02:00
- 80:80 # left side is your local port (change if port 80 is already used)
2018-09-13 20:54:34 +02:00
volumes:
2018-09-18 15:13:02 +02:00
- ~/Photos:/Photos # change ~/Photos to whatever directory you want to use on your local computer
2018-09-18 16:34:08 +02:00
- photoprism-thumbnails:/var/photoprism/thumbnails # keep this (thumbnail cache)
environment:
2018-09-18 16:34:08 +02:00
PHOTOPRISM_IMPORT_PATH: "/Photos/Import" # ~/Photos/Import (files to be imported to originals)
PHOTOPRISM_EXPORT_PATH: "/Photos/Export" # ~/Photos/Export (files exported from originals)
PHOTOPRISM_ORIGINALS_PATH: "/Photos/Originals" # ~/Photos/Originals (original jpeg, raw and meta files)
2018-09-13 20:54:34 +02:00
2018-09-18 15:13:02 +02:00
database: # keep this
2018-09-13 20:54:34 +02:00
image: mysql:latest
restart: always
2018-09-13 20:54:34 +02:00
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=1024
volumes:
2018-09-17 18:08:46 +02:00
- photoprism-database:/var/lib/mysql
2018-09-13 20:54:34 +02:00
environment:
MYSQL_ROOT_PASSWORD: photoprism
MYSQL_USER: photoprism
MYSQL_PASSWORD: photoprism
MYSQL_DATABASE: photoprism
2018-09-18 15:13:02 +02:00
volumes: # keep this
photoprism-thumbnails:
2018-09-13 20:54:34 +02:00
driver: local
2018-09-17 18:08:46 +02:00
photoprism-database:
2018-09-13 20:54:34 +02:00
driver: local