Update docker-compose.yml

improve structure
This commit is contained in:
LRVT 2023-02-26 03:53:25 +01:00 committed by GitHub
parent 82075b32ae
commit 801ed62f6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,9 @@ version: "3"
services: services:
photoprism: photoprism:
image: photoprism/photoprism:latest
container_name: photoprism container_name: photoprism
hostname: photoprism
environment: environment:
- PHOTOPRISM_ADMIN_PASSWORD=MySecureLoginPasswordForPhotoprism - PHOTOPRISM_ADMIN_PASSWORD=MySecureLoginPasswordForPhotoprism
- PHOTOPRISM_DEBUG=false - PHOTOPRISM_DEBUG=false
@ -14,7 +16,6 @@ services:
- PHOTOPRISM_DATABASE_DRIVER=sqlite - PHOTOPRISM_DATABASE_DRIVER=sqlite
ports: ports:
- 2342:2342 - 2342:2342
image: photoprism/photoprism:latest
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- /path/to/my/locally/stored/media/files:/photoprism/originals - /path/to/my/locally/stored/media/files:/photoprism/originals