Docker: Improve docs and add working_dir to docker-compose.yml
This commit is contained in:
parent
5db93bb731
commit
408ee3402d
|
@ -12,6 +12,7 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "2342:2342" # Web Server (PhotoPrism)
|
- "2342:2342" # Web Server (PhotoPrism)
|
||||||
- "2343:2343" # Acceptance Tests
|
- "2343:2343" # Acceptance Tests
|
||||||
|
working_dir: "/go/src/github.com/photoprism/photoprism"
|
||||||
volumes:
|
volumes:
|
||||||
- ".:/go/src/github.com/photoprism/photoprism"
|
- ".:/go/src/github.com/photoprism/photoprism"
|
||||||
- "go-mod:/go/pkg/mod"
|
- "go-mod:/go/pkg/mod"
|
||||||
|
|
|
@ -25,6 +25,7 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "2342:2342" # Web Server (PhotoPrism)
|
- "2342:2342" # Web Server (PhotoPrism)
|
||||||
- "2343:2343" # Acceptance Tests
|
- "2343:2343" # Acceptance Tests
|
||||||
|
working_dir: "/go/src/github.com/photoprism/photoprism"
|
||||||
volumes:
|
volumes:
|
||||||
- ".:/go/src/github.com/photoprism/photoprism"
|
- ".:/go/src/github.com/photoprism/photoprism"
|
||||||
- "go-mod:/go/pkg/mod"
|
- "go-mod:/go/pkg/mod"
|
||||||
|
|
|
@ -40,6 +40,8 @@ services:
|
||||||
security_opt:
|
security_opt:
|
||||||
- seccomp:unconfined
|
- seccomp:unconfined
|
||||||
- apparmor:unconfined
|
- apparmor:unconfined
|
||||||
|
# Run as a specific, non-root user (see https://docs.docker.com/engine/reference/run/#user):
|
||||||
|
# user: "1000"
|
||||||
ports:
|
ports:
|
||||||
- "2342:2342" # [local port]:[container port]
|
- "2342:2342" # [local port]:[container port]
|
||||||
environment:
|
environment:
|
||||||
|
@ -70,16 +72,14 @@ services:
|
||||||
PHOTOPRISM_SITE_CAPTION: "Browse Your Life"
|
PHOTOPRISM_SITE_CAPTION: "Browse Your Life"
|
||||||
PHOTOPRISM_SITE_DESCRIPTION: ""
|
PHOTOPRISM_SITE_DESCRIPTION: ""
|
||||||
PHOTOPRISM_SITE_AUTHOR: ""
|
PHOTOPRISM_SITE_AUTHOR: ""
|
||||||
# You may optionally set a user / group id using environment variables if your Docker version or NAS does not
|
# Set a non-root user, group, or custom umask if your Docker environment doesn't support this natively:
|
||||||
# support this natively (see next example):
|
|
||||||
# UID: 1000
|
# UID: 1000
|
||||||
# GID: 1000
|
# GID: 1000
|
||||||
# UMASK: 0000
|
# UMASK: 0000
|
||||||
# Uncomment and edit the following line to set a specific user / group id (native):
|
|
||||||
# user: "1000:1000"
|
|
||||||
# For hardware AVC transcoding using the h264_v4l2m2m encoder:
|
# For hardware AVC transcoding using the h264_v4l2m2m encoder:
|
||||||
# devices:
|
# devices:
|
||||||
# - "/dev/video11:/dev/video11"
|
# - "/dev/video11:/dev/video11"
|
||||||
|
working_dir: "/photoprism"
|
||||||
volumes:
|
volumes:
|
||||||
# Your photo and video files ([local path]:[container path]):
|
# Your photo and video files ([local path]:[container path]):
|
||||||
- "~/Pictures:/photoprism/originals"
|
- "~/Pictures:/photoprism/originals"
|
||||||
|
|
|
@ -98,6 +98,8 @@ services:
|
||||||
security_opt:
|
security_opt:
|
||||||
- seccomp:unconfined
|
- seccomp:unconfined
|
||||||
- apparmor:unconfined
|
- apparmor:unconfined
|
||||||
|
# Run as a specific, non-root user (see https://docs.docker.com/engine/reference/run/#user):
|
||||||
|
user: "1000"
|
||||||
# Don't expose port when running behind Traefik reverse proxy!
|
# Don't expose port when running behind Traefik reverse proxy!
|
||||||
# ports:
|
# ports:
|
||||||
# - "2342:2342" # [local port]:[container port]
|
# - "2342:2342" # [local port]:[container port]
|
||||||
|
@ -140,7 +142,7 @@ services:
|
||||||
PHOTOPRISM_DATABASE_NAME: "photoprism" # MariaDB database schema name
|
PHOTOPRISM_DATABASE_NAME: "photoprism" # MariaDB database schema name
|
||||||
PHOTOPRISM_DATABASE_USER: "photoprism" # MariaDB database user name
|
PHOTOPRISM_DATABASE_USER: "photoprism" # MariaDB database user name
|
||||||
PHOTOPRISM_DATABASE_PASSWORD: "_admin_password_" # MariaDB database user password
|
PHOTOPRISM_DATABASE_PASSWORD: "_admin_password_" # MariaDB database user password
|
||||||
user: "1000"
|
working_dir: "/photoprism"
|
||||||
volumes:
|
volumes:
|
||||||
# Your photo and video files ([local path]:[container path]):
|
# Your photo and video files ([local path]:[container path]):
|
||||||
- "./originals:/photoprism/originals"
|
- "./originals:/photoprism/originals"
|
||||||
|
|
|
@ -40,6 +40,8 @@ services:
|
||||||
security_opt:
|
security_opt:
|
||||||
- seccomp:unconfined
|
- seccomp:unconfined
|
||||||
- apparmor:unconfined
|
- apparmor:unconfined
|
||||||
|
# Run as a specific, non-root user (see https://docs.docker.com/engine/reference/run/#user):
|
||||||
|
# user: "1000"
|
||||||
ports:
|
ports:
|
||||||
- "2342:2342" # [local port]:[container port]
|
- "2342:2342" # [local port]:[container port]
|
||||||
environment:
|
environment:
|
||||||
|
@ -67,13 +69,11 @@ services:
|
||||||
PHOTOPRISM_SITE_CAPTION: "Browse Your Life"
|
PHOTOPRISM_SITE_CAPTION: "Browse Your Life"
|
||||||
PHOTOPRISM_SITE_DESCRIPTION: ""
|
PHOTOPRISM_SITE_DESCRIPTION: ""
|
||||||
PHOTOPRISM_SITE_AUTHOR: ""
|
PHOTOPRISM_SITE_AUTHOR: ""
|
||||||
# You may optionally set a user / group id using environment variables if your Docker version or NAS does not
|
# Set a non-root user, group, or custom umask if your Docker environment doesn't support this natively:
|
||||||
# support this natively (see next example):
|
|
||||||
# UID: 1000
|
# UID: 1000
|
||||||
# GID: 1000
|
# GID: 1000
|
||||||
# UMASK: 0000
|
# UMASK: 0000
|
||||||
# Uncomment and edit the following line to set a specific user / group id (native):
|
working_dir: "/photoprism"
|
||||||
# user: "1000:1000"
|
|
||||||
volumes:
|
volumes:
|
||||||
# Your photo and video files ([local path]:[container path]):
|
# Your photo and video files ([local path]:[container path]):
|
||||||
- "~/Pictures:/photoprism/originals"
|
- "~/Pictures:/photoprism/originals"
|
||||||
|
|
|
@ -42,6 +42,8 @@ services:
|
||||||
security_opt:
|
security_opt:
|
||||||
- seccomp:unconfined
|
- seccomp:unconfined
|
||||||
- apparmor:unconfined
|
- apparmor:unconfined
|
||||||
|
# Run as a specific, non-root user (see https://docs.docker.com/engine/reference/run/#user):
|
||||||
|
# user: "1000"
|
||||||
ports:
|
ports:
|
||||||
- "2342:2342" # [local port]:[container port]
|
- "2342:2342" # [local port]:[container port]
|
||||||
environment:
|
environment:
|
||||||
|
@ -69,13 +71,11 @@ services:
|
||||||
PHOTOPRISM_SITE_CAPTION: "Browse Your Life"
|
PHOTOPRISM_SITE_CAPTION: "Browse Your Life"
|
||||||
PHOTOPRISM_SITE_DESCRIPTION: ""
|
PHOTOPRISM_SITE_DESCRIPTION: ""
|
||||||
PHOTOPRISM_SITE_AUTHOR: ""
|
PHOTOPRISM_SITE_AUTHOR: ""
|
||||||
# You may optionally set a user / group id using environment variables if your Docker version or NAS does not
|
# Set a non-root user, group, or custom umask if your Docker environment doesn't support this natively:
|
||||||
# support this natively (see next example):
|
|
||||||
# UID: 1000
|
# UID: 1000
|
||||||
# GID: 1000
|
# GID: 1000
|
||||||
# UMASK: 0000
|
# UMASK: 0000
|
||||||
# Uncomment and edit the following line to set a specific user / group id (native):
|
working_dir: "/photoprism"
|
||||||
# user: "1000:1000"
|
|
||||||
volumes:
|
volumes:
|
||||||
# Your photo and video files ([local path]:[container path]):
|
# Your photo and video files ([local path]:[container path]):
|
||||||
- "~/Pictures:/photoprism/originals"
|
- "~/Pictures:/photoprism/originals"
|
||||||
|
|
|
@ -40,6 +40,8 @@ services:
|
||||||
security_opt:
|
security_opt:
|
||||||
- seccomp:unconfined
|
- seccomp:unconfined
|
||||||
- apparmor:unconfined
|
- apparmor:unconfined
|
||||||
|
# Run as a specific, non-root user (see https://docs.docker.com/engine/reference/run/#user):
|
||||||
|
# user: "1000"
|
||||||
ports:
|
ports:
|
||||||
- "2342:2342" # [local port]:[container port]
|
- "2342:2342" # [local port]:[container port]
|
||||||
environment:
|
environment:
|
||||||
|
@ -62,13 +64,11 @@ services:
|
||||||
PHOTOPRISM_SITE_CAPTION: "Browse Your Life"
|
PHOTOPRISM_SITE_CAPTION: "Browse Your Life"
|
||||||
PHOTOPRISM_SITE_DESCRIPTION: ""
|
PHOTOPRISM_SITE_DESCRIPTION: ""
|
||||||
PHOTOPRISM_SITE_AUTHOR: ""
|
PHOTOPRISM_SITE_AUTHOR: ""
|
||||||
# You may optionally set a user / group id using environment variables if your Docker version or NAS does not
|
# Set a non-root user, group, or custom umask if your Docker environment doesn't support this natively:
|
||||||
# support this natively (see next example):
|
|
||||||
# UID: 1000
|
# UID: 1000
|
||||||
# GID: 1000
|
# GID: 1000
|
||||||
# UMASK: 0000
|
# UMASK: 0000
|
||||||
# Uncomment and edit the following line to set a specific user / group id (native):
|
working_dir: "/photoprism"
|
||||||
# user: "1000:1000"
|
|
||||||
volumes:
|
volumes:
|
||||||
# Your photo and video files ([local path]:[container path]):
|
# Your photo and video files ([local path]:[container path]):
|
||||||
- "~/Pictures:/photoprism/originals"
|
- "~/Pictures:/photoprism/originals"
|
||||||
|
|
|
@ -67,6 +67,7 @@ services:
|
||||||
PHOTOPRISM_SITE_CAPTION: "Browse Your Life"
|
PHOTOPRISM_SITE_CAPTION: "Browse Your Life"
|
||||||
PHOTOPRISM_SITE_DESCRIPTION: ""
|
PHOTOPRISM_SITE_DESCRIPTION: ""
|
||||||
PHOTOPRISM_SITE_AUTHOR: ""
|
PHOTOPRISM_SITE_AUTHOR: ""
|
||||||
|
working_dir: "/photoprism"
|
||||||
volumes:
|
volumes:
|
||||||
# Your photo and video files (multiple directories or drives can be indexed by mounting them as sub-folders):
|
# Your photo and video files (multiple directories or drives can be indexed by mounting them as sub-folders):
|
||||||
- "~/Pictures:/photoprism/originals/Pictures"
|
- "~/Pictures:/photoprism/originals/Pictures"
|
||||||
|
|
Loading…
Reference in a new issue