kodcloud部署

一. docker-compose.yml / kodbox.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
# 编写compose文件:
cat > kodbox.yml << EOF
version: '3.0'
services:
kodcloud:
container_name: kodcloud
image: kodcloud/kodbox
restart: always
ports:
- 1111:80
depends_on:
- mysql
- redis

mysql:
container_name: mysql
image: mysql:8.0.29
restart: always
volumes:
- /root/docker/mysql/data:/var/lib/mysql
- /root/docker/mysql/conf:/etc/mysql/conf.d
- /root/docker/mysql/logs:/logs
ports:
- 9004:3306
environment:
- "MYSQL_ROOT_PASSWORD=2002"

redis:
container_name: redis
image: redis:5.0
restart: always
volumes:
- /root/docker/redis/data:/data
- /root/docker/redis/redis.conf:/etc/redis/redis.conf
ports:
- 9005:6379
EOF

二. 执行部署

1
2
# 执行部署
docker-compose -f kodbox.yml up -d // docker-compose up -d

三. 浏览器访问

http://ip:1111

效果:

image-20230520234640995

image-20230520234657511

image-20230520234709103

image-20230520234815846

image-20230520234830191

四、下载可道云客户端 ( 不做配置 )

下载链接地址: https://kodcloud.com/download/

把站点切换为自己服务器的访问地址,就可以用上面创建的账号登录了