version: "3.8" services: nginx-proxy-manager: image: 'lepresidente/nginx-proxy-manager:latest' restart: always ports: - "8181:8181" - "8080:8080" - "4443:4443" environment: TZ: "America/New_York" DISABLE_IPV6: "1" volumes: - "/npm/data/nginx-proxy-manager:/config:rw" - "/npm/data/nginx-proxy-manager/crowdsec/templates:/templates:ro" networks: crowdsec_proxy: ipv4_address: 172.20.0.4 crowdsec: image: "crowdsecurity/crowdsec:latest" container_name: crowdsec expose: - 8080 environment: PGID: "1000" volumes: - "/npm/crowdsec/data:/var/lib/crowdsec/data" - "/npm/crowdsec/config:/etc/crowdsec" - "/var/log/auth.log:/var/log/auth.log:ro" - "/data/logs:/var/log/nginx:ro" restart: unless-stopped networks: crowdsec_proxy: ipv4_address: 172.20.0.6 networks: crowdsec_proxy: ipam: driver: default config: - subnet: 172.20.0.0/24