This commit is contained in:
		@@ -1,25 +1,16 @@
 | 
				
			|||||||
 | 
					Portainer Stack:
 | 
				
			||||||
 | 
					```yaml
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
version: "3.8"
 | 
					version: "3.8"
 | 
				
			||||||
 | 
					 | 
				
			||||||
services:
 | 
					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:
 | 
					  photoview:
 | 
				
			||||||
    image: viktorstrate/photoview:2
 | 
					    image: viktorstrate/photoview:2
 | 
				
			||||||
    restart: always
 | 
					    restart: unless-stopped
 | 
				
			||||||
    ports:
 | 
					    ports:
 | 
				
			||||||
      - "8000:80"
 | 
					      - "8000:80"
 | 
				
			||||||
    depends_on:
 | 
					    depends_on:
 | 
				
			||||||
      - photoview_db
 | 
					      - photoview_db
 | 
				
			||||||
 | 
					 | 
				
			||||||
    environment:
 | 
					    environment:
 | 
				
			||||||
      - PHOTOVIEW_DATABASE_DRIVER=mysql
 | 
					      - PHOTOVIEW_DATABASE_DRIVER=mysql
 | 
				
			||||||
      - PHOTOVIEW_MYSQL_URL=photoview:photosecret@tcp(db)/photoview
 | 
					      - PHOTOVIEW_MYSQL_URL=photoview:photosecret@tcp(db)/photoview
 | 
				
			||||||
@@ -31,14 +22,13 @@ services:
 | 
				
			|||||||
      # Enable the following Godebug
 | 
					      # Enable the following Godebug
 | 
				
			||||||
      # - GODEBUG=asyncpreemptoff=1
 | 
					      # - GODEBUG=asyncpreemptoff=1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      
 | 
					 | 
				
			||||||
      # Optional: To enable map related features, you need to create a mapbox token.
 | 
					      # 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/
 | 
					      # 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.
 | 
					      # 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>
 | 
					      # - MAPBOX_TOKEN=<YOUR TOKEN HERE>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    volumes:
 | 
					    volumes:
 | 
				
			||||||
      - api_cache:/app/cache
 | 
					      - photoview_cache:/app/cache
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      # Change This: to the directory where your photos are located on your server.
 | 
					      # 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
 | 
					      # If the photos are located at `/home/user/photos`, then change this value
 | 
				
			||||||
@@ -46,6 +36,21 @@ services:
 | 
				
			|||||||
      # You can mount multiple paths, if your photos are spread across multiple directories.
 | 
					      # You can mount multiple paths, if your photos are spread across multiple directories.
 | 
				
			||||||
      - ./photos_path:/photos:ro
 | 
					      - ./photos_path:/photos:ro
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  photoview_db:
 | 
				
			||||||
 | 
					    image: lscr.io/linuxserver/mariadb:latest
 | 
				
			||||||
 | 
					    restart: unless-stopped
 | 
				
			||||||
 | 
					    environment:
 | 
				
			||||||
 | 
					      - TZ=Europe/Amsterdam
 | 
				
			||||||
 | 
					      - PGID=1000
 | 
				
			||||||
 | 
					      - PUID=1000
 | 
				
			||||||
 | 
					      - MYSQL_DATABASE=photoview
 | 
				
			||||||
 | 
					      - MYSQL_USER=photoview
 | 
				
			||||||
 | 
					      - MYSQL_PASSWORD=photosecret
 | 
				
			||||||
 | 
					      - MYSQL_ROOT_PASSWORD=photoviewadmin
 | 
				
			||||||
    volumes:
 | 
					    volumes:
 | 
				
			||||||
  db_data:
 | 
					      - photoview_db_data:/config
 | 
				
			||||||
  api_cache:
 | 
					
 | 
				
			||||||
 | 
					volumes:
 | 
				
			||||||
 | 
					  photoview_db_data:
 | 
				
			||||||
 | 
					  photoview_cache:
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
@@ -92,6 +92,7 @@ nav:
 | 
				
			|||||||
    - MQTT-Explorer: portainer-stacks/mqtt-explorer.md
 | 
					    - MQTT-Explorer: portainer-stacks/mqtt-explorer.md
 | 
				
			||||||
    - MQTT Mosquitto: portainer-stacks/MQTT-Mosquitto.md
 | 
					    - MQTT Mosquitto: portainer-stacks/MQTT-Mosquitto.md
 | 
				
			||||||
    - Octoprint:  portainer-stacks/octoprint.md
 | 
					    - Octoprint:  portainer-stacks/octoprint.md
 | 
				
			||||||
 | 
					    - PhotoView:  portainer-stacks/PhotoView.md
 | 
				
			||||||
    - qBittorrent:  portainer-stacks/qbittorrent.md
 | 
					    - qBittorrent:  portainer-stacks/qbittorrent.md
 | 
				
			||||||
    - Samba:  portainer-stacks/samba.md
 | 
					    - Samba:  portainer-stacks/samba.md
 | 
				
			||||||
    - TasmoBackup:  portainer-stacks/TasmoBackup.md
 | 
					    - TasmoBackup:  portainer-stacks/TasmoBackup.md
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user