docker 设置环境变量

docker run  -itd --name jf --restart=always --privileged=true -p 8080:8080 -v /home/yida/apps/jf/logs-8076:/usr/local/tomcat/logs -e MYSQL_SERVICE_HOST=10.143.133.118  -e MYSQL_SERVICE_PORT=3306 -e MYSQL_SERVICE_USER=root -e MYSQL_SERVICE_PASSWORD=5mLzHsyIVmxc -e REDIS_SERVICE_HOST=10.143.133.192  -e REDIS_SERVICE_PORT=6379 jftomcat:latest

 

posted @ 2023-08-21 11:38  追梦$少年  阅读(129)  评论(0编辑  收藏  举报