add reverse proxy

This commit is contained in:
Torben Haack 2024-10-11 06:56:14 +02:00
parent eae9603587
commit c03ddaf238
2 changed files with 20 additions and 3 deletions

View File

@ -0,0 +1,8 @@
{
acme_ca https://acme.zerossl.com/v2/DV90
email torben.haack@mercedes-benz.com
}
m040tbaraspi001.de040.corpintra.net {
reverse_proxy myp-rp:3000
}

View File

@ -1,8 +1,17 @@
services:
app:
image: myp-rp:latest
caddy:
image: caddy
container_name: caddy
restart: unless-stopped
ports:
- "80:3000"
- 80:80
- 443:443
volumes:
- ./caddy/data:/data
- ./caddy/config:/config
- ./caddy/Caddyfile:/etc/caddy/Caddyfile:ro
myp-rp:
image: myp-rp:latest
env_file: "/srv/myp-env/github.env"
volumes:
- /srv/MYP-DB:/usr/src/app/db