update
This commit is contained in:
16
tomcat/Demo/SingleNode/README.md
Normal file
16
tomcat/Demo/SingleNode/README.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# 部署 tomcat
|
||||
|
||||
- 根据实际环境修改
|
||||
- docker-compose.yml
|
||||
|
||||
- 创建目录
|
||||
```
|
||||
grep '\<source:' docker-compose.yml | cut -d: -f2 | xargs mkdir -p
|
||||
```
|
||||
|
||||
- 上传需要的 war 包到 tomcat/webapps/ 下
|
||||
- 启动
|
||||
```
|
||||
docker-compose up -d
|
||||
```
|
||||
|
18
tomcat/Demo/SingleNode/docker-compose.yml
Normal file
18
tomcat/Demo/SingleNode/docker-compose.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
version: "3.7"
|
||||
|
||||
services:
|
||||
tomcat:
|
||||
image: harbor.colben.cn/general/tomcat:8
|
||||
container_name: tomcat
|
||||
restart: "on-failure"
|
||||
stop_grace_period: 1m
|
||||
ports:
|
||||
- 8080:8080
|
||||
volumes:
|
||||
- type: bind
|
||||
source: ./tomcat/webapps
|
||||
target: /opt/tomcat/webapps
|
||||
- type: bind
|
||||
source: ./tomcat/logs
|
||||
target: /opt/tomcat/logs
|
||||
|
Reference in New Issue
Block a user