65 lines
1.8 KiB
YAML
65 lines
1.8 KiB
YAML
# compose-cloud.yml
|
|
# https://git.bizmark.cloud/marc/bizMark.git
|
|
services:
|
|
nextcloud:
|
|
image: lscr.io/linuxserver/nextcloud:latest
|
|
container_name: nextcloud
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_healthy
|
|
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:
|
|
- /home/marc/nextcloud/config:/config
|
|
- /home/marc/nextcloud/data:/data
|
|
- /home/marc/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:
|
|
- /home/marc/nextcloud/db:/var/lib/mysql
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-u", "root", "-pStr0ng-Nextcloud-DB-Root-Pass"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 30s
|
|
|
|
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 |