Compose-Examples/examples/nextcloud/docker-compose-redis.yml

64 lines
2.8 KiB
YAML
Raw Normal View History

2023-02-15 21:45:31 +00:00
services:
2023-02-18 23:12:15 +00:00
nextcloud-db:
image: mariadb
container_name: nextcloud-db
hostname: nextcloud-db
command: --transaction-isolation=READ-COMMITTED --innodb_read_only_compressed=OFF
restart: unless-stopped
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nextcloud/database:/var/lib/mysql
2023-02-18 23:12:15 +00:00
environment:
- MYSQL_ROOT_PASSWORD=test #SQL root Passwort eingeben
- MYSQL_PASSWORD=nextcloud #SQL Benutzer Passwort eingeben
- MYSQL_DATABASE=nextcloud #Datenbank Name
- MYSQL_USER=nextcloud #SQL Nutzername
- MYSQL_INITDB_SKIP_TZINFO=1
- MARIADB_AUTO_UPGRADE=1
nextcloud-redis:
image: redis:alpine
container_name: nextcloud-redis
hostname: nextcloud-redis
restart: unless-stopped
command: redis-server --requirepass nextcloud # Redis Passwort eingeben
nextcloud-app:
2023-02-15 21:45:31 +00:00
image: nextcloud
2023-02-18 23:12:15 +00:00
container_name: nextcloud-app
hostname: nextcloud-app
2023-02-18 23:28:22 +00:00
user: 1000:1000
2023-02-18 23:12:15 +00:00
restart: unless-stopped
2023-02-15 21:45:31 +00:00
ports:
- 8080:80
2023-02-18 23:12:15 +00:00
depends_on:
- nextcloud-db
- nextcloud-redis
environment:
TRUSTED_PROXIES: 172.18.0.2/16
OVERWRITEPROTOCOL: https
OVERWRITECLIURL: https://cloud.example.com # pls change
OVERWRITEHOST: cloud.example.com # pls change
REDIS_HOST: nextcloud-redis
REDIS_HOST_PASSWORD: nextcloud # Redis Passwort von oben wieder eingeben
2023-02-15 21:45:31 +00:00
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nextcloud/data:/var/www/html/data
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nextcloud/app:/var/www/html
2023-02-18 23:12:15 +00:00
#labels:
# - traefik.enable=true
# - traefik.http.routers.nextcloud.rule=(Host(`cloud.example.com`)) # pls change
# - traefik.http.services.nextcloud.loadbalancer.server.port=80
2023-02-19 02:04:37 +00:00
# - traefik.http.services.nextcloud.loadbalancer.server.scheme=https
# - traefik.http.services.nextcloud.loadbalancer.serverstransport=insecureTransport@file
2023-02-18 23:12:15 +00:00
# - traefik.docker.network=proxy
# - traefik.http.middlewares.nextcloud-dav.replacepathregex.regex=^/.well-known/ca(l|rd)dav
# - traefik.http.middlewares.nextcloud-dav.replacepathregex.replacement=/remote.php/dav/
# - traefik.http.middlewares.limit.buffering.maxRequestBodyBytes=50000000 # only necessary for enabled file uploads
# - traefik.http.middlewares.limit.buffering.maxResponseBodyBytes=50000000 # only necessary for enabled file uploads
# - traefik.http.middlewares.limit.buffering.memRequestBodyBytes=50000000 # only necessary for enabled file uploads
# - traefik.http.middlewares.limit.buffering.memResponseBodyBytes=50000000 # only necessary for enabled file uploads
# # Part for local lan services only
# #- traefik.http.routers.privatebin.middlewares=basic-auth@file,local-ipwhitelist@file,security-headers@file