Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
photoview-docker [2021/08/25 14:18] – Fabian Horst | photoview-docker [2021/08/25 14:23] (aktuell) – Fabian Horst | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== PhotoView im Docker Container ====== | ====== PhotoView im Docker Container ====== | ||
+ | * https:// | ||
+ | |||
+ | ===== docker-compose.yml ===== | ||
+ | |||
+ | < | ||
+ | version: " | ||
+ | |||
+ | services: | ||
+ | db: | ||
+ | image: mariadb: | ||
+ | restart: always | ||
+ | environment: | ||
+ | - MYSQL_DATABASE=photoview | ||
+ | - MYSQL_USER=photoview | ||
+ | - MYSQL_PASSWORD=photosecret | ||
+ | - MYSQL_RANDOM_ROOT_PASSWORD=1 | ||
+ | volumes: | ||
+ | - db_data:/ | ||
+ | |||
+ | photoview: | ||
+ | image: viktorstrate/ | ||
+ | restart: always | ||
+ | ports: | ||
+ | - " | ||
+ | depends_on: | ||
+ | - db | ||
+ | |||
+ | environment: | ||
+ | - PHOTOVIEW_DATABASE_DRIVER=mysql | ||
+ | - PHOTOVIEW_MYSQL_URL=photoview: | ||
+ | - PHOTOVIEW_LISTEN_IP=photoview | ||
+ | - PHOTOVIEW_LISTEN_PORT=80 | ||
+ | - PHOTOVIEW_MEDIA_CACHE=/ | ||
+ | | ||
+ | # Optional: If you are using Samba/ | ||
+ | # Enable the following Godebug | ||
+ | # - GODEBUG=asyncpreemptoff=1 | ||
+ | | ||
+ | | ||
+ | # Optional: To enable map related features, you need to create a mapbox token. | ||
+ | # A token can be generated for free here https:// | ||
+ | # It's a good idea to limit the scope of the token to your own domain, to prevent others from using it. | ||
+ | # - MAPBOX_TOKEN=< | ||
+ | # Here comes the Public Token when you generate MapBox Account you get this API Token automatically in your Acc! | ||
+ | |||
+ | volumes: | ||
+ | - api_cache:/ | ||
+ | |||
+ | # Change This: to the directory where your photos are located on your server. | ||
+ | # If the photos are located at `/ | ||
+ | # to the following: `/ | ||
+ | # You can mount multiple paths, if your photos are spread across multiple directories. | ||
+ | - ./ | ||
+ | |||
+ | volumes: | ||
+ | db_data: | ||
+ | api_cache: | ||
+ | </ |