咸鱼

咸鱼是以盐腌渍后,晒干的鱼

0%

14、Docker-部署禅道

编写docker-compose.yml文件

镜像可选的有

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
version: '3.3'

services:
my_zentao:
environment:
ADMIN_PASSWD: 123456
ADMIN_USER: admin
image: idoop/zentao
restart: always
volumes:
- /opt/zentao/data:/opt/zbox/
ports:
- 80:80
- 3306:3306
privileged: true
container_name: my_zentao_container

启动容器

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
$ docker-compose up
Creating network "zentao_default" with the default driver
Pulling my_zentao (idoop/zentao:)...
latest: Pulling from idoop/zentao
da7391352a9b: Pull complete
14428a6d4bcd: Pull complete
2c2d948710f2: Pull complete
729b5228ba00: Pull complete
311fb628a743: Pull complete
423409fa4c29: Pull complete
abf924c7f678: Pull complete
e6276fc02c96: Pull complete
Digest: sha256:d1e06d8c10a26b653a7dc7697d758a35baf5a9b3056c7e061c49cb5b6fb44834
Status: Downloaded newer image for idoop/zentao:latest
Creating my_zentao_container ... done
Attaching to my_zentao_container
my_zentao_container | Installing Zentao version: 15.7.1 ...
my_zentao_container | ZBOX是Apache、Mysql、PHP的精简的集成环境。使用时,需要将其解压到/opt目录。
my_zentao_container |
my_zentao_container | /opt/zbox/zbox -h 可以获取帮助
my_zentao_container | /opt/zbox/zbox start 启动脚本
my_zentao_container |
my_zentao_container | Mysql 用户名root,密码为123456。
my_zentao_container |
my_zentao_container | 更多可以访问http://www.zentao.net/goto.php?item=zbox.
my_zentao_container | Start Apache success
my_zentao_container | Start Mysql success

访问

  • 访问IP:端口
  • 域名