trip: image: docker.io/tomcat:9.0.27 ports: - "8080:8080" volumes: - ./logs/tomcat:/usr/local/tomcat/logs - ./tomcat-taoyuan:/usr/local/tomcat/webapps/ROOT Nginx: image: docker.io/nginx:1.17.6 links: - trip:trip ports: - "80:80" - "443:443" volumes: - ./conf:/etc/nginx/conf.d - ./logs:/etc/nginx/logs/ - ./cert:/etc/nginx/cert/ - ./nginx-root:/opt/nginx-root - ./nginx.conf:/etc/nginx/nginx.conf