From ec8ad6487259d53d16a9853f83c9ff3f4197aee9 Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Tue, 17 Jan 2023 11:26:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=B2=E9=83=A8=E7=BD=B2=E5=88=B0dev.ccwin-i?= =?UTF-8?q?n.com:6322=20/root=20=E7=9B=AE=E5=BD=95=EF=BC=8C=E7=AB=AF?= =?UTF-8?q?=E5=8F=A3=204000?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 6 ++++++ .gitignore | 2 ++ README.md | 6 ++++++ docker-compose.yml | 28 ++++++++++++++++++++++++++++ start.sh | 1 + stop.sh | 1 + 6 files changed, 44 insertions(+) create mode 100644 .env create mode 100644 .gitignore create mode 100644 README.md create mode 100644 docker-compose.yml create mode 100644 start.sh create mode 100644 stop.sh diff --git a/.env b/.env new file mode 100644 index 0000000..9b930cc --- /dev/null +++ b/.env @@ -0,0 +1,6 @@ +ZENTAO_VERSION=18.0 +ZENTAO_PORT=4000 +MYSQL_VERSION=8.0.31 +MYSQL_ROOT_PASSWORD=aA123456! + + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8346aa5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +data/ +log/ \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..31a0ea3 --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ +# 开发外围服务器配置 + +使用 Docker Compose 进行管理 + +1. MySQL +1. 禅道 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..975e5ae --- /dev/null +++ b/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 diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..26bee6d --- /dev/null +++ b/start.sh @@ -0,0 +1 @@ +docker-compose up -d --remove-orphans \ No newline at end of file diff --git a/stop.sh b/stop.sh new file mode 100644 index 0000000..356959e --- /dev/null +++ b/stop.sh @@ -0,0 +1 @@ +docker-compose down --remove-orphans \ No newline at end of file