version: '2' services: mariadb: image: 'docker.io/bitnami/mariadb:10.3-debian-10' environment: - ALLOW_EMPTY_PASSWORD=yes - MARIADB_USER=bn_owncloud - MARIADB_DATABASE=bitnami_owncloud volumes: - mariadb_data:/bitnami labels: io.rancher.container.hostname_override: container_name owncloud: image: 'docker.io/bitnami/owncloud:10-debian-10' environment: - MARIADB_HOST=mariadb - MARIADB_PORT_NUMBER=3306 - OWNCLOUD_DATABASE_USER=bn_owncloud - OWNCLOUD_DATABASE_NAME=bitnami_owncloud - ALLOW_EMPTY_PASSWORD=yes - OWNCLOUD_HOST=192.168.0.3 ports: - '9000:80' - '9001:443' volumes: - owncloud_data:/bitnami depends_on: - mariadb labels: io.rancher.container.hostname_override: container_name volumes: mariadb_data: driver: local driver_opts: type: 'none' o: 'bind' device: '/mnt/datab/docker/owncloud/db' owncloud_data: driver: local driver_opts: type: 'none' o: 'bind' device: '/mnt/datab/docker/owncloud/data'
own초기비번:
username: user password: bitnami
도메인등록
외부 오픈시...
다음파일을 찾아서 도메인등록 ( 웹설정으로 불가)
owncloud/conf/config.php
<?php $CONFIG = array ( 'trusted_domains' => array ( 0 => 'localhost', 1 => '127.0.0.1', 2 => '192.168.0.3', 3 => 'own.webnori.com', ),