add caddy
This commit is contained in:
parent
e7a1e8dc3c
commit
c0af62b6cd
3 changed files with 70 additions and 1 deletions
10
bench/Caddyfile
Normal file
10
bench/Caddyfile
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
auto_https off
|
||||
}
|
||||
|
||||
:80 {
|
||||
|
||||
# Proxy everything else to Rocket
|
||||
reverse_proxy backend-nginx
|
||||
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue