seafile是一个开源的同步网盘
Docker 和 Docker Compose 可以用以下的命令来安装:
- sudo apt install docker.io docker-compose
复制代码 打开一个终端,然后创建一个 Seafile 服务器用来储存内容的目录,并进入目录中:- mkdir ~/seafile-server && cd ~/seafile-server
复制代码 转到你创建的目录然后运行以下命令:下一步,在弹出的窗口中键入以下文本内容:- version: '2.0'
- services:
- db:
- image: mariadb
- container_name: seafile-mysql
- environment:
- - MYSQL_ROOT_PASSWORD=password
- - MYSQL_LOG_CONSOLE=true
- volumes:
- - ./data/mariadb:/var/lib/mysql
- networks:
- - seafile-net
- memcached:
- image: memcached
- container_name: seafile-memcached
- entrypoint: memcached -m 256
- networks:
- - seafile-net
- seafile:
- image: seafileltd/seafile-mc
- container_name: seafile
- ports:
- - "8080:80"
- volumes:
- - ./data/app:/shared
- environment:
- - DB_HOST=db
- - DB_ROOT_PASSWD=password
- - TIME_ZONE=Etc/UTC
- - [email protected]
- - SEAFILE_ADMIN_PASSWORD=password
- - SEAFILE_SERVER_LETSENCRYPT=false
- - SEAFILE_SERVER_HOSTNAME=docs.seafile.com
- depends_on:
- - db
- - memcached
- networks:
- - seafile-net
- networks:
- seafile-net:
复制代码
|