docker-compose安装tomcat

version: '3'
services:
  tomcat:
    restart: always
    image: tomcat
    container_name: tomcat
    ports:
      - 9020:8080
    volumes:
      - ./data/webapps/:/usr/local/tomcat/webapps/
    environment:
      TZ: Asia/Shanghai

你可能感兴趣的:(docker-compose安装tomcat)