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 -p docker/traefik && cd docker/traefik
|
||||||
mkdir www
|
mkdir www
|
||||||
echo "my.nginx" > www/index.html
|
echo "my.nginx" > www/index.html
|
||||||
cat > docker-compose.yml <<-EOT
|
#cat > docker-compose.yml <<-EOT
|
||||||
|
cat > docker-compose.yml <<EOT
|
||||||
version: '3'
|
version: '3'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
@ -96,7 +97,7 @@ services:
|
|||||||
# A container that exposes an API to show its IP address
|
# A container that exposes an API to show its IP address
|
||||||
image: nginx:1.23-alpine
|
image: nginx:1.23-alpine
|
||||||
volumes:
|
volumes:
|
||||||
-v ./www:/usr/share/nginx/html:ro
|
- ./www:/usr/share/nginx/html:ro
|
||||||
labels:
|
labels:
|
||||||
- "traefik.http.routers.nginx.rule=Host(`my.nginx`)"
|
- "traefik.http.routers.nginx.rule=Host(`my.nginx`)"
|
||||||
EOT
|
EOT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user