- Modifié
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'
# ---------------- #