Skip to content

Commit 4622ff9

Browse files
committed
Docs: new way to get the database IP
Thanks for help, @pink-snow!
1 parent ebf6882 commit 4622ff9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ CONFIG=/opt/loglist/conf/application.conf
141141
VERSION=latest
142142
PORT=9000
143143
ENV_FILE=/opt/loglist/conf/loglist.env
144-
DB_IP=`ip -4 addr show scope global dev docker0 | grep inet | awk '{print $2}' | cut -d / -f 1 | sed -n 1p`
144+
DB_IP=$(docker network inspect --format='{{range .IPAM.Config}}{{.Gateway}}{{end}}' bridge)
145145
docker pull codingteam/loglist:$VERSION
146146
docker rm -f $NAME
147147
docker run -d --restart unless-stopped \

0 commit comments

Comments
 (0)