services: nextcloud: image: lscr.io/linuxserver/nextcloud:latest container_name: nextcloud-${INSTANCE}-${IP}-${PORT} environment: - PUID=${U_ID} - PGID=${U_ID} - TZ=${TZ-Continent}/{TZ-City} - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} - MYSQL_DATABASE=${MYSQL_DATABASE} - MYSQL_USER=${MYSQL_USER} - MYSQL_PASSWORD=${MYSQL_PASSWORD} - MYSQL_HOST=mariadb depends_on: - mariadb - collabora volumes: - ${DATA_DIR}/config:/config - ${DATA_DIR}/data:/data ports: - ${IP}:${PORT}:443 restart: unless-stopped mariadb: image: mariadb:latest container_name: mariadb restart: unless-stopped environment: - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} - MYSQL_DATABASE=${MYSQL_DATABASE} - MYSQL_USER=${MYSQL_USER} - MYSQL_PASSWORD=${MYSQL_PASSWORD} volumes: - ${DATA_DIR}/bdd:/var/lib/mysql collabora: container_name: example-com--collabora image: collabora/code:latest cap_add: - MKNOD environment: - domain=${DOMAIN} - username=${DOMAIN} - password=${CSEC} ports: - ${IP}:${PORT_COLLABORA}:9980 restart: always volumes: - "/etc/localtime:/etc/localtime:ro"