added photoview and nextcloud

This commit is contained in:
Ryogo Ragnarson committed 2024-03-29 14:58:56 +01:00
1 parent 83ea4b83ec
commit 51f645e256
2 files changed
+79

No files matched your search

+46
View File
@@ -0,0 +1,46 @@
version: '3'
services:
nextcloud:
image: linuxserver/nextcloud
container_name: nextcloud
environment:
- PUID=1000 # Change this to your user/group id
- PGID=1000 # Change this to your group id
- TZ=Europe/Berlin # Change this to your timezone
volumes:
- /datato/nextcloud/config:/config
- /data:/data
depends_on:
- db
- redis
- onlyoffice
ports:
- 443:443
restart: unless-stopped
db:
image: postgres
container_name: postgres
environment:
- POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud
- POSTGRES_PASSWORD= # Set a secure password
volumes:
- /datato/nextcloud/db:/var/lib/postgresql/data
restart: unless-stopped
redis:
image: redis:alpine
container_name: nextcloud_redis
restart: unless-stopped
onlyoffice:
image: onlyoffice/documentserver
container_name: onlyoffice
environment:
- JWT_ENABLED=true
- JWT_SECRET= # Set a secure JWT secret
ports:
- 9980:80
restart: unless-stopped
+33
View File
@@ -0,0 +1,33 @@
services:
db:
container_name: photoview-db
image: mariadb:10.5
restart: unless-stopped
environment:
- MYSQL_DATABASE=photoview
- MYSQL_USER=photoview
- MYSQL_PASSWORD=
- MYSQL_RANDOM_ROOT_PASSWORD=1
volumes:
- /datato/photoview/db_data:/var/lib/mysql
photoview:
container_name: photoview-server
image: viktorstrate/photoview:2
restart: unless-stopped
ports:
- 8083:80
depends_on:
- db
environment:
- PHOTOVIEW_DATABASE_DRIVER=mysql
- PHOTOVIEW_MYSQL_URL=photoview:@tcp(db)/photoview
- PHOTOVIEW_LISTEN_IP=photoview
- PHOTOVIEW_LISTEN_PORT=80
- PHOTOVIEW_MEDIA_CACHE=/app/cache
- MAPBOX_TOKEN=your-token-here
volumes:
- /datato/photoview/api_cache:/app/cache
- /photos:/photos:ro
volumes:
db_data: null
api_cache: null