목차 열기
티스토리 뷰
728x90
반응형
NextCloud 공식 문서
docs.nextcloud.com/server/15/admin_manual/contents.html
NextCloud 디렉토리 생성
sudo mkdir -p /data/nextcloud/nextcloud
sudo mkdir -p /data/nextcloud/apps
sudo mkdir -p /data/nextcloud/config
sudo mkdir -p /data/nextcloud/data
sudo mkdir -p /data/nextcloud/theme
MariaDB에서 NextCloud 계정 생성
sudo docker exec -it mariadb bash
mysql -u root -p
/---------------------------------------------------------
CREATE DATABASE nextcloud;
CREATE USER 'nextcloud'@'%' IDENTIFIED BY 'PASSWORD';
GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextcloud'@'%';
FLUSH PRIVILEGES;
quit
/---------------------------------------------------------
exit
NextCloud와 MariaDB 네트워크 설정
sudo docker network create nextcloud
sudo docker network connect nextcloud mariadb
NextCloud 컨테이너 생성
sudo docker run -d \
-p 8585:80 \
--name=nextcloud \
--network=nextcloud \
--restart=unless-stopped \
-v /data/nextcloud/nextcloud:/var/www/html \
-v /data/nextcloud/apps:/var/www/html/custom_apps \
-v /data/nextcloud/config:/var/www/html/config \
-v /data/nextcloud/data:/var/www/html/data \
-v /data/nextcloud/theme:/var/www/html/themes \
-e MYSQL_HOST=mariadb \
-e MYSQL_DATABASE=nextcloud \
-e MYSQL_USER=nextcloud \
-e MYSQL_PASSWORD='[MariaDB 비밀번호]' \
nextcloud
728x90
반응형
'Server > Docker' 카테고리의 다른 글
[Docker] MySQL 실행 (0) | 2021.02.17 |
---|---|
[Docker] Node.js - nodemon으로 실시간 서버 재시작하기 (0) | 2021.02.16 |
[Docker] Node.js 이미지 제작 후 실행 (0) | 2021.02.16 |
[Docker error] Nextcloud 업로드 오류 / request entity too large (0) | 2021.02.04 |
[Docker] vim 설치 오류 (0) | 2021.02.04 |
[Docker] MariaDB 실행 (0) | 2021.02.04 |
[Docker] 도커 구성 / 명령어 / Configuration (0) | 2021.01.31 |
댓글