add caddy

This commit is contained in:
Jun Kurihara 2022-06-27 22:03:36 -04:00
commit c0af62b6cd
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
3 changed files with 70 additions and 1 deletions

10
bench/Caddyfile Normal file
View file

@ -0,0 +1,10 @@
{
auto_https off
}
:80 {
# Proxy everything else to Rocket
reverse_proxy backend-nginx
}

View file

@ -2,11 +2,13 @@ version: "3"
services:
nginx:
image: nginx:alpine
container_name: nginx-web
container_name: backend-nginx
restart: unless-stopped
environment:
- VIRTUAL_HOST="127.0.0.1"
- VIRTUAL_PORT=80
expose:
- 80
ports:
- 127.0.0.1:8888:80
logging:
@ -28,3 +30,13 @@ services:
options:
max-size: "10m"
max-file: "3"
caddy-rp:
image: caddy:2
container_name: proxy-caddy
ports:
- 127.0.0.1:8100:80
restart: unless-stopped
tty: false
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro