chgt back-ticks dans hosts et <<- par << pour le here-doc
This commit is contained in:
parent
9ec91834aa
commit
c7d69b2af3
5
docker-traefik-nginxb/Vagrantfile
vendored
5
docker-traefik-nginxb/Vagrantfile
vendored
@ -75,7 +75,8 @@ Vagrant.configure("2") do |config|
|
||||
mkdir -p docker/traefik && cd docker/traefik
|
||||
mkdir www
|
||||
echo "my.nginx" > www/index.html
|
||||
cat > docker-compose.yml <<-EOT
|
||||
#cat > docker-compose.yml <<-EOT
|
||||
cat > docker-compose.yml <<EOT
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
@ -96,7 +97,7 @@ services:
|
||||
# A container that exposes an API to show its IP address
|
||||
image: nginx:1.23-alpine
|
||||
volumes:
|
||||
-v ./www:/usr/share/nginx/html:ro
|
||||
- ./www:/usr/share/nginx/html:ro
|
||||
labels:
|
||||
- "traefik.http.routers.nginx.rule=Host(`my.nginx`)"
|
||||
EOT
|
||||
|
Loading…
x
Reference in New Issue
Block a user