compose updates

This commit is contained in:
Waylon Walker 2023-05-27 19:27:01 -05:00
parent e6644cc770
commit a538fa8981
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4
11 changed files with 49 additions and 36 deletions

View file

@ -9,14 +9,14 @@ services:
- no-new-privileges:true
networks:
- proxy
environment:
- MYSQL_DATABASE=photoview
- MYSQL_USER=photoview
- MYSQL_PASSWORD=photosecret
- MYSQL_RANDOM_ROOT_PASSWORD=1
volumes:
- /etc/localtime:/etc/localtime:ro
- db_data:/var/lib/mysql
environment:
- MYSQL_DATABASE=${PHOTOVIEW_MYSQL_DATABASE}
- MYSQL_USER=${PHOTOVIEW_MYSQL_USER}
- MYSQL_RANDOM_ROOT_PASSWORD=${PHOTOVIEW_MYSQL_RANDOM_ROOT_PASSWORD}
- MYSQL_PASSWORD=${PHOTOVIEW_MYSQL_PASSWORD}
photoview:
image: viktorstrate/photoview:2
@ -64,7 +64,7 @@ services:
- "traefik.http.middlewares.photoview-https-redirect.redirectscheme.scheme=https"
- "traefik.http.routers.photoview.middlewares=photoview-https-redirect"
- "traefik.http.routers.photoview-secure.entrypoints=https"
- "traefik.http.routers.photoview-secure.rule=Host(`photoview.local.waylonwalker.com`)"
- "traefik.http.routers.photoview-secure.rule=Host(`photoview.${URL}`)"
- "traefik.http.routers.photoview-secure.tls=true"
- "traefik.http.routers.photoview-secure.service=photoview"
- "traefik.http.services.photoview.loadbalancer.server.port=80"