PiGallery2 hinzugefügt
This commit is contained in:
6
pigallery2/.env.sample
Normal file
6
pigallery2/.env.sample
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#MySQL Datenbank
|
||||||
|
DB_PASSWORD=ChangeMe
|
||||||
|
DB_ROOT_PASSWORD=ChangeMe
|
||||||
|
|
||||||
|
NFS_SERVER=192.168.0.xxx
|
||||||
|
Photos=/mnt/Pfad/zu/den/Bildern
|
||||||
36
pigallery2/docker-compose.yml
Normal file
36
pigallery2/docker-compose.yml
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
pigallery-db:
|
||||||
|
container_name: pigallery-db
|
||||||
|
image: mariadb
|
||||||
|
volumes:
|
||||||
|
- ./db-data:/var/lib/mysql
|
||||||
|
environment:
|
||||||
|
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
|
||||||
|
- MYSQL_USER=pigallery2
|
||||||
|
- MYSQL_PASSWORD=${DB_PASSWORD}
|
||||||
|
- MYSQL_DATABASE=pigallery2
|
||||||
|
|
||||||
|
pigallery2:
|
||||||
|
image: bpatrik/pigallery2:latest
|
||||||
|
command: sh -c 'bin/wait-for pigallery-db:3306 -- --Server-Database-mysql-host=pigallery-db --Server-Database-mysql-username=pigallery2 --Server-Database-mysql-password=${DB_PASSWORD} --Server-Database-mysql-database=pigallery2'
|
||||||
|
container_name: pigallery2
|
||||||
|
environment:
|
||||||
|
- NODE_ENV=production
|
||||||
|
volumes:
|
||||||
|
- "./db-data:/app/data/db"
|
||||||
|
- "Photos:/app/data/images:ro"
|
||||||
|
- "./config:/app/data/config"
|
||||||
|
- "./tmp:/app/data/tmp"
|
||||||
|
ports:
|
||||||
|
- 8090:80
|
||||||
|
restart: always
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
Photos:
|
||||||
|
name: Photos
|
||||||
|
driver: local
|
||||||
|
driver_opts:
|
||||||
|
type: nfs
|
||||||
|
o: addr=${NFS_SERVER},rw
|
||||||
|
device: ":${Photos}"
|
||||||
Reference in New Issue
Block a user