modif spour substitution des parametres
This commit is contained in:
parent
82659b67e9
commit
0436310086
4
docker-traefik-nginxb/Vagrantfile
vendored
4
docker-traefik-nginxb/Vagrantfile
vendored
@ -78,7 +78,7 @@ Vagrant.configure("2") do |config|
|
|||||||
mkdir nginx2
|
mkdir nginx2
|
||||||
echo "my.nginx2" > nginx2/index.html
|
echo "my.nginx2" > nginx2/index.html
|
||||||
#cat > docker-compose.yml <<-EOT
|
#cat > docker-compose.yml <<-EOT
|
||||||
cat > docker-compose.yml <<EOT
|
cat > docker-compose.yml <<'EOT'
|
||||||
version: '3'
|
version: '3'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
@ -109,7 +109,7 @@ services:
|
|||||||
- ./nginx2:/usr/share/nginx/html:ro
|
- ./nginx2:/usr/share/nginx/html:ro
|
||||||
labels:
|
labels:
|
||||||
- "traefik.http.routers.nginx2.rule=Host(`my.nginx2`)"
|
- "traefik.http.routers.nginx2.rule=Host(`my.nginx2`)"
|
||||||
EOT
|
'EOT'
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
ip -br a
|
ip -br a
|
||||||
SHELL
|
SHELL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user