Skip to content

Instantly share code, notes, and snippets.

@serafdev
Created May 19, 2020 20:04
Show Gist options
  • Save serafdev/0bc636a8f1413c6a731c2c2438e9ea6d to your computer and use it in GitHub Desktop.
Save serafdev/0bc636a8f1413c6a731c2c2438e9ea6d to your computer and use it in GitHub Desktop.
Caddy Reverse Proxy example
version: '3'
volumes:
caddy_data:
caddy_config:
services:
caddy:
image: caddy
volumes:
- caddy_data:/data
- caddy_config:/config
ports:
- 80:80
- 443:443
command: caddy reverse-proxy --from dydy.gcp.seraf.dev --to backend:8081
backend:
build:
context: .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment