Skip to content

Instantly share code, notes, and snippets.

@kgust
Created August 15, 2018 02:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kgust/df1d9ebd6e4cff490f4277dee97aef61 to your computer and use it in GitHub Desktop.
Save kgust/df1d9ebd6e4cff490f4277dee97aef61 to your computer and use it in GitHub Desktop.
Playing with Docker dynamic frontend servers
irbosx-c02q307.dhcp.mc.vanderbilt.edu:80 {
gzip
fastcgi / 127.0.0.1:9001 php {
root /app001/www/irb
index web/app_dev.php
}
}
localhost:8000 {
root /Users/gustavkd/github.com/vanderbilt/irb/web/
rewrite {
to {path} app_dev.php?{query}
}
fastcgi / localhost:9001 php {
index app_dev.php
}
}
portainer.dev {
fastcgi / localhost:9002 {
root /
index index.php
ext php
}
}
[frontends]
[frontends.frontend1]
backend = "some-backend-name"
[frontends.frontend1.routes.test_1]
rule = "Host: localhost; Method: GET"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment