From 5b4dd7c4feab6ac93f1d373fab8811aecea021a9 Mon Sep 17 00:00:00 2001 From: Sthope Date: Sun, 1 May 2022 10:12:29 +0200 Subject: [PATCH] first commit --- docs/portainer-stacks/photoview.yml | 51 +++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 docs/portainer-stacks/photoview.yml diff --git a/docs/portainer-stacks/photoview.yml b/docs/portainer-stacks/photoview.yml new file mode 100644 index 0000000..0f37fd9 --- /dev/null +++ b/docs/portainer-stacks/photoview.yml @@ -0,0 +1,51 @@ +version: "3.8" + +services: + photoview_db: + image: mariadb:10.5 + restart: always + environment: + - MYSQL_DATABASE=photoview + - MYSQL_USER=photoview + - MYSQL_PASSWORD=photosecret + - MYSQL_RANDOM_ROOT_PASSWORD=1 + volumes: + - photoview_db_data:/var/lib/mysql + + photoview: + image: viktorstrate/photoview:2 + restart: always + ports: + - "8000:80" + depends_on: + - photoview_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= + + 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: \ No newline at end of file