96 lines
2.4 KiB
Plaintext
96 lines
2.4 KiB
Plaintext
services:
|
|
nginx-dev:
|
|
image: nginx:latest
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- haproxy-dev
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
volumes:
|
|
- ./config_files/default.conf:/etc/nginx/conf.d/default.conf:ro
|
|
- ./config_files/matrix.conf:/etc/nginx/conf.d/matrix.conf:ro
|
|
- ./certs:/etc/nginx/certs:ro
|
|
- ./certbot/www:/var/www/certbot:ro
|
|
- nginx_cache:/var/cache/nginx
|
|
- nginx_dynamic_cache:/var/cache/nginx_dynamic
|
|
- nginx_logs:/var/log/nginx
|
|
|
|
crowdsec:
|
|
image: crowdsecurity/crowdsec:latest
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- nginx-dev
|
|
ports:
|
|
- "127.0.0.1:8080:8080"
|
|
environment:
|
|
COLLECTIONS: "crowdsecurity/nginx crowdsecurity/http-cve"
|
|
volumes:
|
|
- nginx_logs:/var/log/nginx:ro
|
|
- crowdsec_config:/etc/crowdsec
|
|
- crowdsec_data:/var/lib/crowdsec/data
|
|
- ./config_files/crowdsec-acquis.yaml:/etc/crowdsec/acquis.d/nginx.yaml:ro
|
|
- ./config_files/crowdsec-homelab-whitelist.yaml:/etc/crowdsec/parsers/s02-enrich/homelab-whitelist.yaml:ro
|
|
|
|
haproxy-dev:
|
|
image: haproxy:alpine
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- varnish-dev
|
|
- squid-dev
|
|
volumes:
|
|
- ./config_files/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
|
|
|
|
varnish-dev:
|
|
image: varnish:fresh-alpine
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./config_files/default.vcl:/etc/varnish/default.vcl:ro
|
|
|
|
squid-dev:
|
|
image: ubuntu/squid:latest
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./config_files/squid.conf:/etc/squid/squid.conf:ro
|
|
- squid_cache:/var/spool/squid
|
|
- squid_logs:/var/log/squid
|
|
|
|
node-exporter:
|
|
image: prom/node-exporter:latest
|
|
restart: unless-stopped
|
|
pid: host
|
|
ports:
|
|
- "0.0.0.0:9100:9100/tcp"
|
|
command:
|
|
- --path.procfs=/host/proc
|
|
- --path.sysfs=/host/sys
|
|
- --path.rootfs=/rootfs
|
|
volumes:
|
|
- /proc:/host/proc:ro
|
|
- /sys:/host/sys:ro
|
|
- /:/rootfs:ro
|
|
|
|
cadvisor:
|
|
image: gcr.io/cadvisor/cadvisor:v0.49.1
|
|
restart: unless-stopped
|
|
privileged: true
|
|
ports:
|
|
- "0.0.0.0:9101:8080/tcp"
|
|
devices:
|
|
- /dev/kmsg:/dev/kmsg
|
|
volumes:
|
|
- /:/rootfs:ro
|
|
- /var/run:/var/run:ro
|
|
- /sys:/sys:ro
|
|
- /var/lib/docker:/var/lib/docker:ro
|
|
- /dev/disk:/dev/disk:ro
|
|
|
|
volumes:
|
|
nginx_cache:
|
|
nginx_dynamic_cache:
|
|
nginx_logs:
|
|
crowdsec_config:
|
|
crowdsec_data:
|
|
squid_cache:
|
|
squid_logs:
|