Fixes for subdomain
This commit is contained in:
parent
c33d9a9862
commit
dcfb8a78af
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ RemainAfterExit=yes
|
|||
Environment=URL=%i
|
||||
ExecStart=/bin/bash -euxc ' \
|
||||
sleep 3; \
|
||||
container_name=`echo ${URL}_web_1 | sed "s/\.//"`; \
|
||||
container_name=`echo ${URL}_web_1 | sed "s/\.//g"`; \
|
||||
ip=`docker inspect --format \'{{.NetworkSettings.IPAddress}}\' $container_name`; \
|
||||
etcdctl --peers 172.17.42.1:4001 set /services/web/%i \'{"ip":"\'$ip\'", "port":"80"}\';'
|
||||
ExecStop=-/usr/bin/etcdctl rm /services/web/%i
|
||||
|
|
Loading…
Reference in a new issue