Advertisement
Guest User

Untitled

a guest
Jul 10th, 2021
251
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '3.3'
  2. services:
  3. db:
  4. image: mariadb
  5. container_name: db
  6. hostname: nextcloud
  7. command: --transaction-isolation=READ-COMMITTED --log-bin=ROW
  8. restart: unless-stopped
  9. volumes:
  10. - /etc/localtime:/etc/localtime:ro
  11. - /etc/timezone:/etc/timezone:ro
  12. - ./database:/var/lib/mysql
  13. environment:
  14. - MYSQL_ROOT_PASSWORD=mysqlpw #SQL root Passwort eingeben
  15. - MYSQL_PASSWORD=mysqlpw
  16. - MYSQL_DATABASE=nextcloud #Datenbank Name
  17. - MYSQL_USER=nextcloud #SQL Nutzername
  18. - MYSQL_INITDB_SKIP_TZINFO=1
  19. networks:
  20. - default
  21. redis:
  22. image: redis:alpine
  23. container_name: redis
  24. hostname: redis
  25. networks:
  26. - default
  27. restart: unless-stopped
  28. command: redis-server --requirepass redispw # Redis Passwort eingeben
  29. app:
  30. image: nextcloud:21-fpm-alpine
  31. container_name: app
  32. restart: unless-stopped
  33. depends_on:
  34. - db
  35. - redis
  36. ports:
  37. - 9024:9000
  38. environment:
  39. OVERWRITEPROTOCOL: https
  40. REDIS_HOST: redis
  41. REDIS_HOST_PASSWORD: redispw
  42. MYSQL_PASSWORD: mysqlpw
  43. MYSQL_DATABASE: nextcloud
  44. MYSQL_USER: nextcloud
  45. MYSQL_HOST: db
  46. NEXTCLOUD_ADMIN_USER: admin
  47. NEXTCLOUD_ADMIN_PASSWORD: admin
  48. #NEXTCLOUD_TRUSTED_DOMAINS: nextcloud.euredomain.de
  49. NEXTCLOUD_FQDN: nextcloud.euredomain.de
  50. OVERWRITEHOST: nextcloud.euredomain.de
  51. OVERWRITEPROTOCOL: https
  52. # docker name of the reverse proxy container (space separated list of fqdns/ips)
  53. TRUSTED_PROXIES: traefik
  54. volumes:
  55. - ./app:/var/www/html
  56. - ./data:/var/www/html/data
  57. networks:
  58. - proxy
  59. - default
  60. web:
  61. image: nginx
  62. container_name: web
  63. restart: always
  64. ports:
  65. - 9023:80
  66. links:
  67. - app
  68. volumes:
  69. - ./nginx.conf:/etc/nginx/nginx.conf:ro
  70. - ./app:/var/www/html
  71. labels:
  72. - "traefik.enable=true"
  73. - "traefik.http.routers.nextcloud.entrypoints=https"
  74. - "traefik.http.routers.nextcloud.middlewares=backend-secured@file"
  75. - "traefik.http.routers.nextcloud.rule=Host(`nextcloud.euredomain.de`)"
  76. - "traefik.http.routers.nextcloud.tls=true"
  77. - "traefik.http.routers.nextcloud.tls.certresolver=netcup"
  78. - "traefik.http.services.nextcloud.loadbalancer.server.port=80"
  79. - "traefik.docker.network=proxy"
  80. - "traefik.http.routers.nextcloud.middlewares=nextcloud-dav,secHeaders@file"
  81. - "traefik.http.middlewares.nextcloud-dav.replacepathregex.regex=^/.well-known/ca(l|rd)dav"
  82. - "traefik.http.middlewares.nextcloud-dav.replacepathregex.replacement=/remote.php/dav/"
  83. networks:
  84. - proxy
  85. - default
  86.  
  87. networks:
  88. proxy:
  89. external: true
  90.  
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement