version: "3"
services:
admin:
image: tomcat:8.5-jre8
container_name: admin
ports:
- "80:8080"
volumes:
- /var/local/bdb_admin/admin_web:/usr/local/tomcat/webapps
- /home/logs/:/usr/logs/
- /home/upload/:/usr/upload/
- /etc/localtime:/etc/localtime
environment:
# 引用环境变量,最终是传入容器里交付件的启动命令中
- JAVA_OPTS=-Duser.timezone=GMT+08