photoprism/configs/docker-compose.yml
2018-11-08 10:56:11 +01:00

36 lines
No EOL
1.5 KiB
YAML

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