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

85 lines
3.4 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
- PUID=1000
- PGID=1000
- TZ=Europe/Berlin
2024-05-14 22:24:38 +00:00
#networks:
# - proxy
2023-02-18 23:12:15 +00:00
nextcloud-redis:
image: redis:alpine
container_name: nextcloud-redis
hostname: nextcloud-redis
restart: unless-stopped
command: redis-server --requirepass nextcloud # Redis Passwort eingeben
2024-05-14 22:24:38 +00:00
#networks:
# - proxy
2023-02-18 23:12:15 +00:00
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
restart: unless-stopped
expose:
- 80
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:
PUID: 1000
PGID: 1000
#OVERWRITEPROTOCOL: http # switch to https if using a reverse proxy
#OVERWRITECLIURL: http://127.0.0.1:8080 # adjust protocol and ip/domain
#OVERWRITEHOST: 127.0.0.1:8080 # adjust ip/domain
2024-05-16 15:17:07 +00:00
#TRUSTED_PROXIES: 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 # enable if run behind reverse proxy
MYSQL_HOST: nextcloud-db
MYSQL_DATABASE: nextcloud
MYSQL_USER: nextcloud
MYSQL_PASSWORD: nextcloud
2023-02-18 23:12:15 +00:00
REDIS_HOST: nextcloud-redis
REDIS_HOST_PASSWORD: nextcloud
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
2024-05-14 22:24:38 +00:00
#networks:
# - proxy
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
2024-05-14 22:24:38 +00:00
# - traefik.http.services.nextcloud.loadbalancer.serverstransport=insecureTransport@file
# - traefik.http.routers.CHANGEME.middlewares=local-ipwhitelist@file,authelia@docker
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
2024-05-14 22:24:38 +00:00
#networks:
# proxy:
# external: true