Initiale Version
This commit is contained in:
parent
409ef3889d
commit
9dcaf8cf59
|
|
@ -0,0 +1,60 @@
|
|||
# compose-cloud.yml
|
||||
# https://git.bizmark.cloud/marc/bizMark.git
|
||||
services:
|
||||
nextcloud:
|
||||
image: lscr.io/linuxserver/nextcloud:latest
|
||||
container_name: nextcloud
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=Europe/Zurich
|
||||
- REDIS_HOST=redis
|
||||
- REDIS_HOST_PASSWORD=Str0ng-Redis-Pass
|
||||
- DB_TYPE=mysql
|
||||
- DB_HOST=db
|
||||
- DB_NAME=nextcloud
|
||||
- DB_USER=nextcloud
|
||||
- DB_PASSWORD=Str0ng-Nextcloud-DB-User-Pass
|
||||
ports:
|
||||
- "8085:80"
|
||||
volumes:
|
||||
- /opt/nextcloud/config:/config
|
||||
- /opt/nextcloud/data:/data
|
||||
- /opt/homepage/config:/mnt/homepage/config
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -f http://localhost:80 || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
db:
|
||||
image: mariadb:11
|
||||
container_name: nextcloud-db
|
||||
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
|
||||
environment:
|
||||
- MARIADB_DATABASE=nextcloud
|
||||
- MARIADB_USER=nextcloud
|
||||
- MARIADB_PASSWORD=Str0ng-Nextcloud-DB-User-Pass
|
||||
- MARIADB_ROOT_PASSWORD=Str0ng-Nextcloud-DB-Root-Pass
|
||||
- TZ=Europe/Zurich
|
||||
volumes:
|
||||
- /opt/nextcloud/db:/var/lib/mysql
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "mysqladmin ping -h localhost -u nextcloud -pStr0ng-Nextcloud-DB-User-Pass || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
container_name: nextcloud-redis
|
||||
command: ["redis-server", "--requirepass", "Str0ng-Redis-Pass"]
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "-a", "Str0ng-Redis-Pass", "ping"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
Loading…
Reference in New Issue