adding reverse proxy with ssl
All checks were successful
Build and Deploy Demo App / build-and-deploy (push) Successful in 33s
All checks were successful
Build and Deploy Demo App / build-and-deploy (push) Successful in 33s
This commit is contained in:
24
docker-compose.yml
Normal file
24
docker-compose.yml
Normal 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:
|
||||
Reference in New Issue
Block a user