Last active
April 5, 2023 01:04
-
-
Save ethanjli/e4b53aba1f212d0ee53fbdfaa6319e85 to your computer and use it in GitHub Desktop.
Docker Stack demo file for running an NGINX demo and whoami endpoint on a PlanktoScope with Docker+Portainer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
hello: | |
image: nginxdemos/hello | |
networks: | |
- caddy | |
labels: | |
caddy: :80 | |
caddy.redir: /demo/nginx-1 /demo/nginx-1/ | |
caddy.handle_path: /demo/nginx-1/* | |
caddy.handle_path.reverse_proxy: "{{upstreams 80}}" | |
whoami: | |
image: containous/whoami | |
networks: | |
- caddy | |
labels: | |
caddy: :80 | |
caddy.redir: /demo/whoami-1 /demo/whoami-1/ | |
caddy.handle_path: /demo/whoami-1/* | |
caddy.handle_path.reverse_proxy: "{{upstreams 80}}" | |
networks: | |
caddy: | |
external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment