• Docker
  • Problème nextcloud office avec un Reverse Proxy

Bonjour,

J'ai besoin d'un petit coups de main pour mon conteneur NextCloud avec Collabora derrière un reverse-proxy.

Collabora Online should use the same protocol as the server installation.

###############
version: '3.9'#
services:     #
###############

##################################################################
 Nextcloud:
  # ------------------------------------------------------------ #
  image: 'nextcloud'
  container_name: 'CN_Nextcloud'
  # ------------------------------------------------------------ #
  depends_on:
  # ------------------------------------------------------------ #
   MariaDB:
    condition: 'service_healthy'
   Collabora:
    condition: 'service_healthy'
  # ------------------------------------------------------------ #
  links:
   - 'MariaDB:mysql'
   - 'Collabora:Collabora'
  # ------------------------------------------------------------ #
  environment:
   OVERWRITEPROTOCOL: 'https'
   NEXTCLOUD_ADMIN_USER: 'admin'
   NEXTCLOUD_ADMIN_PASSWORD : 'nextcloud'
  # ------------------------------------------------------------ #
   MYSQL_HOST: 'mysql'
   MYSQL_DATABASE: 'nextcloud'
   MYSQL_USER: 'nextcloud'
   MYSQL_PASSWORD: 'nextcloud'
   NEXTCLOUD_TRUSTED_DOMAINS: '192.168.1.43 nextcloud.drthrax74.ddns.net'
  # ------------------------------------------------------------ #
  volumes:
   - 'Nextcloud:/var/www/html'
   - 'NextCloud_Data:/var/www/html/data'
  # ------------------------------------------------------------ #
  ports:
   - '8085:80'
##################################################################
#
#
##################################################################
 Collabora:
  image: 'collabora/code'
  container_name: 'CN_Collabora'
  environment:
   extra_params: '--o:ssl.enable=false'
  ports:
   - '9980:9980'
  healthcheck:
   test: ["CMD", "curl", "-f", "http://localhost:9980"]
   start_period: '5s'
   interval: '90s'
   timeout: '10s'
   retries: '3'
##################################################################
#
#
##################################################################
 MariaDB:
  # ------------------------------------------------------------ #
  image: 'linuxserver/mariadb'
  container_name: 'CN_MariaDB'
  # ------------------------------------------------------------ #
  environment:
   PUID: '1002'
   PGID: '1002'
   TZ: 'Europe/Paris'
  # ------------------------------------------------------------ #
   MYSQL_ROOT_PASSWORD: 'root'
   MYSQL_DATABASE: 'nextcloud'
   MYSQL_USER: 'nextcloud'
   MYSQL_PASSWORD: 'nextcloud'
  # ------------------------------------------------------------ #
  volumes:
   - 'MariaDB:/config'
  # ------------------------------------------------------------ #
  expose:
   - '3306'
  healthcheck:
   test: ["CMD", "mysqladmin", "ping", "--silent"]
##################################################################
#
#
##################################################################
volumes:
 # ---------------- #
 MariaDB:
  external: 'false'
 # ---------------- #
 Nextcloud:
  external: 'false'
 # ---------------- #
 NextCloud_Data:
  external: 'false'
 # ---------------- #

Bonjour,

Mon problème c'est sa m'affiche l'erreur suivante, et je sais pas où chercher l'erreur. (log)

NextCloud (Identifiant: admin | Pass: admin)
Check

--

Reverse Proxy

--

Docker-Compose

################
version: '3.9' #
services:     ##
################
#
#
###########################################################################
# http://192.168.1.43/settings/apps/installed/richdocuments
# http://192.168.1.43/settings/admin/richdocuments
# http://192.168.1.43:9980
 Nextcloud:
  image: 'nextcloud'
  network_mode: 'bridge'
  # --------------------------------------------------------------------- #
  container_name: 'CN_Nextcloud'
  hostname: 'NextCloud'
  domainname: 'lan'
  restart: 'always'
  # --------------------------------------------------------------------- #
  depends_on:
  # --------------------------------------------------------------------- #
   MariaDB:
    condition: 'service_healthy'
  # --------------------------------------------------------------------- #
  links:
   - 'MariaDB:mysql'
   - 'Collabora:Collabora'
  # --------------------------------------------------------------------- #
  environment:
   NEXTCLOUD_ADMIN_USER: 'admin'
   NEXTCLOUD_ADMIN_PASSWORD: 'admin'
   MYSQL_HOST: 'mysql'
   MYSQL_DATABASE: 'nextcloud'
   MYSQL_USER: 'nextcloud'
   MYSQL_PASSWORD: 'nextcloud'
   NEXTCLOUD_TRUSTED_DOMAINS: '192.168.1.43 nextcloud.drthrax74.ddns.net'
   OVERWRITEPROTOCOL: 'https' # Forcer le protocole
  # --------------------------------------------------------------------- #
  # volumes:
   # - 'NextCloud_Data:/var/www/html'
  # --------------------------------------------------------------------- #
  ports: 
   - '8085:80'
  # --------------------------------------------------------------------- #
  healthcheck:
   test: ["CMD", "curl", "-f", "http://localhost:80"] # HTTP
   start_period: '5s'
   interval: '30s'
   timeout: '10s'
   retries: '3'
# https://hub.docker.com/_/nextcloud
###########################################################################
#
#
###########################################################################
# http://192.168.1.43:9980/hosting/discovery
# http://192.168.1.43:9980browser/dist/admin/adminHistory.html
 Collabora:
  image: 'collabora/code'
  network_mode: 'bridge'
  # --------------------------------------------------------------------- #
  container_name: 'CN_Collabora'
  hostname: 'Collabora'
  domainname: 'lan'
  restart: 'always'
  # --------------------------------------------------------------------- #
  environment:
   #extra_params: '--o:ssl.enable=false' # HTTPS DISABLE
   username: 'admin'
   password: 'admin'
  # --------------------------------------------------------------------- #
  ports:
    - '9980:9980'
  # --------------------------------------------------------------------- #
  #volumes:
  # - '/root/coolwsd.xml:/etc/coolwsd/coolwsd.xml'
  # --------------------------------------------------------------------- #
  healthcheck:
   #test: ["CMD", "curl", "-f", "http://localhost:9980"] # HTTP
   test: ["CMD", "curl", "-k", "https://localhost:9980"] # HTTPS
   start_period: '5s'
   interval: '30s'
   timeout: '10s'
   retries: '3'
   #disable: true
# https://hub.docker.com/r/collabora/code
###########################################################################
#
#
###########################################################################
# 
 PHPMyAdmin:
  # --------------------------------------------------------------------- #
  image: 'phpmyadmin/phpmyadmin'
  network_mode: 'bridge'
  # --------------------------------------------------------------------- #
  container_name: 'CN_PHPMyAdmin'
  hostname: 'PHPMyAdmin'
  domainname: 'Lan'
  restart: 'always'
  # --------------------------------------------------------------------- #
  depends_on:
  # --------------------------------------------------------------------- #
   MariaDB:
    condition: 'service_healthy'
  # --------------------------------------------------------------------- #
  links:
  - 'MariaDB:mysql'
  # --------------------------------------------------------------------- #
  environment:
   PMA_ARBITRARY: '0'
   PMA_HOST: 'mysql'
   PMA_PORT: '3306'
   PMA_USER: 'nextcloud'
   PMA_PASSWORD: 'nextcloud'
   PMA_PMADB: 'phpmyadmin'
  # --------------------------------------------------------------------- #
  ports:
  - '85:80'
###########################################################################
#
#
###########################################################################
# Base de donnée
 MariaDB:
  # --------------------------------------------------------------------- #
  image: 'linuxserver/mariadb'
  network_mode: 'bridge'
  # --------------------------------------------------------------------- #
  container_name: 'CN_MariaDB'
  hostname: 'MariaDB'
  domainname: 'lan'
  restart: 'always'
  # --------------------------------------------------------------------- #
  environment:
   PUID: '1002'
   PGID: '1002'
   TZ: 'Europe/Paris'
  # --------------------------------------------------------------------- #
   MYSQL_ROOT_PASSWORD: 'root'
   MYSQL_DATABASE: 'nextcloud'
   MYSQL_USER: 'nextcloud'
   MYSQL_PASSWORD: 'nextcloud'
  # --------------------------------------------------------------------- #
  # volumes:
  # - 'MariaDB:/config'
  # --------------------------------------------------------------------- #
  expose:
   - '3306'
  # --------------------------------------------------------------------- #
  healthcheck:
   test: ["CMD", "mysqladmin", "ping", "--silent"]
###########################################################################
#
#
###########################################################################
# Déclaration des volumes #
###########################
# volumes:
 # ---------------- #
 # MariaDB:
  # external: 'false'
 # ---------------- #
 # Nextcloud:
  # external: 'false'
 # ---------------- #
 # NextCloud_Data:
  # external: 'false'
 # ---------------- #
Répondre…