Browse Source

已部署到dev.ccwin-in.com:6322 /root 目录,端口 4000

master
wanggang 2 years ago
commit
ec8ad64872
  1. 6
      .env
  2. 2
      .gitignore
  3. 6
      README.md
  4. 28
      docker-compose.yml
  5. 1
      start.sh
  6. 1
      stop.sh

6
.env

@ -0,0 +1,6 @@
ZENTAO_VERSION=18.0
ZENTAO_PORT=4000
MYSQL_VERSION=8.0.31
MYSQL_ROOT_PASSWORD=aA123456!

2
.gitignore

@ -0,0 +1,2 @@
data/
log/

6
README.md

@ -0,0 +1,6 @@
# 开发外围服务器配置
使用 Docker Compose 进行管理
1. MySQL
1. 禅道

28
docker-compose.yml

@ -0,0 +1,28 @@
version: "3.8"
services:
mysql:
container_name: mysql
restart: always
image: mysql:${MYSQL_VERSION}
environment:
- TZ=Asia/Shanghai
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
volumes:
- /etc/localtime:/etc/localtime:ro
- ./data/mysql:/var/lib/mysql
command: --default-authentication-plugin=mysql_native_password
zentao:
container_name: zentao
restart: always
image: easysoft/zentao:${ZENTAO_VERSION}
privileged: true
environment:
- TZ=Asia/Shanghai
ports:
- ${ZENTAO_PORT}:80
volumes:
- /etc/localtime:/etc/localtime:ro
- ./data/zentao:/www/zentaopms
depends_on:
- mysql

1
start.sh

@ -0,0 +1 @@
docker-compose up -d --remove-orphans

1
stop.sh

@ -0,0 +1 @@
docker-compose down --remove-orphans
Loading…
Cancel
Save