chgt back-ticks dans hosts et <<- par << pour le here-doc

This commit is contained in:
“Albert 2022-11-17 08:48:01 +01:00
parent 9ec91834aa
commit c7d69b2af3

View File

@ -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