Files
Server-scripts/docker_compose/mediahost/nginx/docker-compose.yaml
T

63 lines
1.3 KiB
YAML
Raw Normal View History

2026-10-01 14:02:46 +00:00
services:
nginx:
image: nginx:stable
container_name: nginx
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./conf.d:/etc/nginx/conf.d
- ./certs:/etc/nginx/certs
- ./html:/usr/share/nginx/html
# Access and error logs
- ./logs:/var/log/nginx
networks:
2026-10-12 18:10:41 +00:00
- default
2026-10-01 14:02:46 +00:00
- shared-proxy-services
2026-10-12 18:10:41 +00:00
nginx-exporter:
image: nginx/nginx-prometheus-exporter:latest
container_name: nginx-exporter
restart: unless-stopped
command:
- --nginx.scrape-uri=http://nginx:8080/nginx_status
ports:
- "9113:9113"
depends_on:
- nginx
networks:
- default
- shared-proxy-services
2026-10-01 14:02:46 +00:00
crowdsec:
image: crowdsecurity/crowdsec:latest
container_name: crowdsec
restart: unless-stopped
environment:
COLLECTIONS: >
crowdsecurity/nginx
crowdsecurity/http-cve
volumes:
- crowdsec-db:/var/lib/crowdsec/data
- ./logs:/var/log/nginx:ro
- /etc/localtime:/etc/localtime:ro
2026-10-12 18:10:41 +00:00
networks:
- default
2026-10-01 14:02:46 +00:00
certbot:
image: certbot/certbot:latest
container_name: certbot
volumes:
- ./certs:/etc/letsencrypt
- ./html:/var/www/certbot
networks:
- shared-proxy-services
networks:
2026-10-12 18:10:41 +00:00
default:
2026-10-01 14:02:46 +00:00
shared-proxy-services:
external: true
2026-10-12 18:10:41 +00:00
2026-10-01 14:02:46 +00:00
volumes:
crowdsec-db: