adding reverse proxy with ssl
All checks were successful
Build and Deploy Demo App / build-and-deploy (push) Successful in 33s

This commit is contained in:
2025-11-26 00:59:21 +03:30
parent acb7df5cf9
commit ae96b79fb2
3 changed files with 77 additions and 18 deletions

24
docker-compose.yml Normal file
View File

@@ -0,0 +1,24 @@
services:
app:
image: demo-app:latest
container_name: demo-app
restart: unless-stopped
nginx:
image: jonasal/nginx-certbot:latest
container_name: demo-nginx
restart: unless-stopped
ports:
- 8008:80
- 4433:443
environment:
- CERTBOT_EMAIL=your@email.com
- ENVSUBST_TEMPLATE_SUFFIX=.tmpl # Enables template processing if needed
volumes:
- ./nginx_user_conf.d:/etc/nginx/user_conf.d:ro
- letsencrypt:/etc/letsencrypt
depends_on:
- app
volumes:
letsencrypt: