方式一
tomcat运行 docker run -p 80:8080 -v /usr/local/docker/tomcat/ROOT/:/usr/local/tomcat/webapps/ROOT/ tomcat
方式二
version: '3.1' services: tomcat: restart: always image: tomcat container_name: tomcat ports: - 8080:8080 volumes: - ./courage/ROOT/:/usr/local/tomcat/webapps/ROOT environment: TZ: Asia/Shanghai