Files
devops/docker-compose.yml
gitea c442b16a45
All checks were successful
Build and Deploy Demo App / build-and-deploy (push) Successful in 46s
disabled auto certbot, switched to nginx:alpine
2025-11-26 10:49:29 +03:30

26 lines
803 B
YAML

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=the.dark.mist23@gmail.com
- ENVSUBST_TEMPLATE_SUFFIX=.tmpl # Enables template processing if needed
- CERTBOT_DISABLED=true # Disable auto Certbot to use manual certs
volumes:
- ./nginx_user_conf.d:/etc/nginx/conf.d/
- letsencrypt:/etc/letsencrypt
- /home/devroot/demo/certs/fullchain.pem:/etc/nginx/ssl/origin_cert.pem:ro # Mount cert
- /home/devroot/demo/certs/prvkey.pem:/etc/nginx/ssl/origin_key.key:ro # Mount key
depends_on:
- app
volumes:
letsencrypt: