-
-
Notifications
You must be signed in to change notification settings - Fork 140
/
photoprism.yml
59 lines (55 loc) · 1.94 KB
/
photoprism.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# DOMAIN=example.com docker stack deploy -c photoprism.yml photoprism
# chown -R 1000:1000 photoprism
services:
photoprism:
image: photoprism/photoprism:${VERSION:-latest}
environment:
- PHOTOPRISM_UID=${UID:-1000}
- PHOTOPRISM_GID=${GID:-1000}
- PHOTOPRISM_ADMIN_USER=${ADMIN_USER:-admin}
- PHOTOPRISM_ADMIN_PASSWORD=${ADMIN_PASSWORD:-myp@ssw0rd}
- PHOTOPRISM_AUTH_MODE=password
- PHOTOPRISM_SITE_URL=${SCHEME:-https}://${DOMAIN:-photoprism.localhost}
- PHOTOPRISM_DATABASE_DRIVER=mysql
- PHOTOPRISM_DATABASE_SERVER=mariadb:3306
- PHOTOPRISM_DATABASE_NAME=photoprism
- PHOTOPRISM_DATABASE_USER=photoprism
- PHOTOPRISM_DATABASE_PASSWORD=myp@ssw0rd
volumes:
- ${VOLUME_PATH}originals:/photoprism/originals
- ${VOLUME_PATH}storage:/photoprism/storage
- ${VOLUME_PATH}import:/photoprism/import
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.photoprism-${NUMBER:-1}.rule=Host(`${DOMAIN:-photoprism.localhost}`)
- traefik.http.routers.photoprism-${NUMBER:-1}.entrypoints=${SCHEME:-https}
- traefik.http.routers.photoprism-${NUMBER:-1}.service=photoprism-${NUMBER:-1}
- traefik.http.routers.photoprism-${NUMBER:-1}.tls.certresolver=letsencrypt
- traefik.http.services.photoprism-${NUMBER:-1}.loadbalancer.server.port=2342
networks:
- traefik
- internal
mariadb:
image: mariadb:${MARIADB_VERSION:-10.5.12}
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-myp@ssw0rd}
- MYSQL_USER=${MYSQL_USER:-photoprism}
- MYSQL_DATABASE=${MYSQL_DATABASE:-photoprism}
- MYSQL_PASSWORD=${MYSQL_PASSWORD:-myp@ssw0rd}
volumes:
- ${VOLUME_PATH}mariadb:/var/lib/mysql
networks:
- internal
volumes:
originals:
storage:
import:
mariadb:
networks:
internal:
driver: overlay
attachable: true
traefik:
external: true
name: traefik-net