-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
27 lines (26 loc) · 979 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
27 lines (26 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
version: '3'
services:
nginx:
image: owasp/modsecurity-crs:3.3-nginx
restart: unless-stopped
ports:
- "80:80"
- "443:443"
network_mode: host
volumes:
- ./entrypoint.sh:/entrypoint.sh
- ./data/nginx/conf.d:/etc/nginx/conf.d
- ./data/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./data/nginx/exclusion-rules.conf:/opt/owasp-crs/rules/RESPONSE-999-EXCLUSION-RULES-AFTER-CRS.conf
- ./data/nginx/GeoIP:/usr/share/GeoIP/
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ./data/certbot:/etc/letsencrypt
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & /entrypoint.sh'"
certbot:
image: certbot/certbot:arm32v6-latest
restart: unless-stopped
volumes:
- ./data/certbot:/etc/letsencrypt
- ./duckdns-hook.sh:/duckdns-hook.sh
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 24h & wait $${!}; done;'"