photoview-docker

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Nächste Überarbeitung
Vorhergehende Überarbeitung
photoview-docker [2021/08/25 14:17] – angelegt Fabian Horstphotoview-docker [2021/08/25 14:23] (aktuell) Fabian Horst
Zeile 1: Zeile 1:
 ====== PhotoView im Docker Container ====== ====== PhotoView im Docker Container ======
  
 +  * https://github.com/photoview/photoview
 +
 +
 +===== docker-compose.yml =====
 +
 +<code>
 +version: "3"
 +
 +services:
 +  db:
 +    image: mariadb:10.5
 +    restart: always
 +    environment:
 +      - MYSQL_DATABASE=photoview
 +      - MYSQL_USER=photoview
 +      - MYSQL_PASSWORD=photosecret
 +      - MYSQL_RANDOM_ROOT_PASSWORD=1
 +    volumes:
 +      - db_data:/var/lib/mysql
 +
 +  photoview:
 +    image: viktorstrate/photoview:2
 +    restart: always
 +    ports:
 +      - "8000:80"
 +    depends_on:
 +      - db
 +
 +    environment:
 +      - PHOTOVIEW_DATABASE_DRIVER=mysql
 +      - PHOTOVIEW_MYSQL_URL=photoview:photosecret@tcp(db)/photoview
 +      - PHOTOVIEW_LISTEN_IP=photoview
 +      - PHOTOVIEW_LISTEN_PORT=80
 +      - PHOTOVIEW_MEDIA_CACHE=/app/cache
 +      
 +      # Optional: If you are using Samba/CIFS-Share and experience problems with "directory not found"
 +      # 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://account.mapbox.com/access-tokens/
 +      # It's a good idea to limit the scope of the token to your own domain, to prevent others from using it.
 +      # - MAPBOX_TOKEN=<YOUR TOKEN HERE>
 +      # Here comes the Public Token when you generate MapBox Account you get this API Token automatically in your Acc!
 +
 +    volumes:
 +      - api_cache:/app/cache
 +
 +      # Change This: to the directory where your photos are located on your server.
 +      # If the photos are located at `/home/user/photos`, then change this value
 +      # to the following: `/home/user/photos:/photos:ro`.
 +      # You can mount multiple paths, if your photos are spread across multiple directories.
 +      - ./photos_path:/photos:ro
 +
 +volumes:
 +  db_data:
 +  api_cache:
 +</code>
  • photoview-docker.1629893860.txt.gz
  • Zuletzt geändert: 2021/08/25 14:17
  • von Fabian Horst