SeaTable部署笔记

  

1、安装

1
2
3
4
5
6
yum install epel-release -y
yum install docker-compose -y

yum install docker -y
systemctl start docker
docker pull seatable/seatable:latest

2、配置

1
2
3
4
mkdir /opt/seatable
wget -c https://xiaohost.com/wp-content/uploads/docker-compose.tar.gz
tar -zxvf docker-compose.tar.gz
rm docker-compose.tar.gz

3、修改配置文件
(或者先清空,再vi,将本地编辑好的内容直接粘贴)

1
cat /dev/null > docker-compose.yml
1
vi docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: '2.0'
services:
  db:
    image: mariadb:10.5
    container_name: seatable-mysql
    environment:
      - MYSQL_ROOT_PASSWORD=PASSWORD  # 必填, 设置MySQL数据库root密码
      - MYSQL_LOG_CONSOLE=true
    volumes:
      - /opt/seatable/mysql-data:/var/lib/mysql  # 必填, MySQL 数据的卷目录.
    networks:
      - seatable-net

  memcached:
    image: memcached:1.5.6
    container_name: seatable-memcached
    entrypoint: memcached -m 256
    networks:
      - seatable-net

  redis:
    image: redis:5.0.7
    container_name: seatable-redis
    networks:
      - seatable-net
         
  seatable:
    image: seatable/seatable:latest
    container_name: seatable
    ports:
      - "80:80"
      - "443:443"  # 如果启用了https,则取消注释
    volumes:
      - /opt/seatable/seatable-data:/shared  # 必填,SeaTable 数据卷目录.
    environment:
      - DB_HOST=db
      - DB_ROOT_PASSWD=PASSWORD  # 必填,该值为MySQL服务的root密码
      - SEATABLE_SERVER_LETSENCRYPT=False # 默认False. 若启用let's encrypt的免费SSL证书true.
      - SEATABLE_SERVER_HOSTNAME=example.seatable.com # 定义主机名(域名).
      - TIME_ZONE=Asia/Shanghai # Optional, default is UTC. Should be uncomment and set to your local time zone.
    depends_on:
      - db
      - memcached
      - redis
    networks:
      - seatable-net

networks:
  seatable-net:

4、退出vi后,在docker-compose.yml所在目录执行编译命令

1
docker-compose up

您必须才能评论!