Docker-compose 安装NextCloud开源私有网盘

NextCloud

安装Docker-compose

我当前的docker版本是:

[root@localhost network-scripts]# docker -v
Docker version 1.13.1, build 7d71120/1.13.1
curl -L https://github.com/docker/compose/releases/download/3.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose

chmod +x /usr/local/bin/docker-compose

compose-nextcloud.yml

vi compose-nextcloud.yml

version: "3"
services:
  nextcloud:
    image: nextcloud
    container_name: nextcloud
    stdin_open: true
    tty: true
    privileged: true
    restart: always
    ports:
      - 9999:80
    volumes:
      - ./nextcloud:/var/www/html
      - ./apps:/var/www/html/custom_apps
      - ./config:/var/www/html/config
      - ./data/nextcloud:/var/www/html/data

创建卷目录

mkdir apps

mkdir config

mkdir data

启动服务

docker-compose -f compose-nextcloud.yml up -d
posted @ 2022-04-14 18:00  itwetouch  阅读(396)  评论(0编辑  收藏  举报