seafile 快速搭建
安装docker compose
# for CentOS
yum install docker-compose -y
# for Ubuntu
apt-get install docker-compose -y
使用docker compose搭建seafile
docker-compose.yml文件
version: '2.0'services:
db:
image: mariadb:10.5container_name: seafile-mysql
environment:- MYSQL_ROOT_PASSWORD=db_dev # Requested, set the root's password of MySQL service.
- MYSQL_LOG_CONSOLE=truevolumes:- /opt/seafile-mysql/db:/var/lib/mysql # Requested, specifies the path to MySQL data persistent store.
networks:- seafile-net
memcached:
image: memcached:1.5.6container_name: seafile-memcached
entrypoint: memcached-m 256networks:- seafile-net
seafile:
image: seafileltd/seafile-mc:latest
container_name: seafile
ports:- "80:80"#- "443:443" # If https isenabled, cancel the comm