Guest User

Untitled

a guest
Sep 12th, 2020
94
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '3.3'
  2. services:
  3. nextcloud-db:
  4. image: mariadb:10.3.22
  5. container_name: nextcloud-db
  6. command: –-transaction-isolation=READ-COMMITTED -–log-bin=ROW
  7. restart: unless-stopped
  8. volumes:
  9. - /etc/localtime:/etc/localtime:ro
  10. - /etc/timezone:/etc/timezone:ro
  11. - /media/bert/docker/nextcloud/database:/var/lib/mysql
  12. environment:
  13. - MYSQL_ROOT_PASSWORD=xxxxx #SQL root Passwort eingeben
  14. - MYSQL_PASSWORD=xxxxx #SQL Benutzer Passwort eingeben
  15. - MYSQL_DATABASE=nextcloud #Datenbank Name
  16. - MYSQL_USER=nextcloud #SQL Nutzername
  17. - MYSQL_INITDB_SKIP_TZINFO=1
  18. networks:
  19. - default
  20.  
  21. nextcloud-redis:
  22. image: redis:alpine
  23. container_name: nextcloud-redis
  24. hostname: nextcloud-redis
  25. networks:
  26. - default
  27. restart: unless-stopped
  28. command: redis-server –-requirepass test
  29.  
  30. nextcloud-app:
  31. image: nextcloud:19.0.2
  32. container_name: nextcloud-app
  33. restart: unless-stopped
  34. depends_on:
  35. - nextcloud-db
  36. - nextcloud-redis
  37. environment:
  38. REDIS_HOST: nextcloud-redis
  39. REDIS_HOST_PASSWORD: test # Redis Passwort von oben wieder eingeben
  40. volumes:
  41. - /media/bert/docker/nextcloud/app:/var/www/html
  42. - /media/bert/daten/nextcloud/daten:/var/www/html/data
  43. labels:
  44. - "traefik.enable=true"
  45. - "traefik.http.routers.nextcloud-app.entrypoints=http"
  46. - "traefik.http.routers.nextcloud-app.rule=Host(`nextcloud.xxxxx.duckdns.org`)"
  47. - "traefik.http.middlewares.nextcloud-app-https-redirect.redirectscheme.scheme=https"
  48. - "traefik.http.routers.nextcloud-app.middlewares=nextcloud-app-https-redirect"
  49. - "traefik.http.routers.nextcloud-app-secure.entrypoints=https"
  50. - "traefik.http.routers.nextcloud-app-secure.rule=Host(`nextcloud.xxxxx.duckdns.org`)"
  51. - "traefik.http.routers.nextcloud-app-secure.tls=true"
  52. - "traefik.http.routers.nextcloud-app-secure.tls.certresolver=http"
  53. - "traefik.http.routers.nextcloud-app-secure.service=nextcloud-app"
  54. - "traefik.http.services.nextcloud-app.loadbalancer.server.port=80"
  55. - "traefik.docker.network=proxy"
  56. - "traefik.http.routers.nextcloud-app-secure.middlewares=nextcloud-dav,secHeaders@file"
  57. - "traefik.http.middlewares.nextcloud-dav.replacepathregex.regex=^/.well-known/ca(l|rd)dav"
  58. - "traefik.http.middlewares.nextcloud-dav.replacepathregex.replacement=/remote.php/dav/"
  59. networks:
  60. - proxy
  61. - default
  62. networks:
  63. proxy:
  64. external: true
RAW Paste Data Copied