docker-compose运行tomcat

方式一
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

 

posted @ 2020-04-18 18:31  RandomObject  阅读(1766)  评论(0编辑  收藏  举报