Skip to content

Instantly share code, notes, and snippets.

@ethanjli
Last active April 5, 2023 01:04
Show Gist options
  • Save ethanjli/e4b53aba1f212d0ee53fbdfaa6319e85 to your computer and use it in GitHub Desktop.
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
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