mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-07 09:53:38 +00:00
Add Docker Compose file and local policy configuration
This commit is contained in:
36
deployment/docker-compose.yaml
Normal file
36
deployment/docker-compose.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
version: '3.8'
|
||||
# docker compose for npm open-appsec integration
|
||||
|
||||
services:
|
||||
appsec-npm:
|
||||
container_name: appsec-npm
|
||||
image: 'ghcr.io/openappsec/appsec-npm:latest'
|
||||
ipc: host
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- '80:80' # Public HTTP Port
|
||||
- '443:443' # Public HTTPS Port
|
||||
- '81:81' # Admin Web Port
|
||||
volumes:
|
||||
- ./data:/data
|
||||
- ./letsencrypt:/etc/letsencrypt
|
||||
- ./appsec-logs:/ext/appsec-logs
|
||||
- ./appsec-localconfig:/ext/appsec
|
||||
|
||||
appsec-agent:
|
||||
container_name: appsec-agent
|
||||
image: 'ghcr.io/openappsec/agent:latest'
|
||||
network_mode: service:appsec-npm
|
||||
ipc: host
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
# adjust with your own email below
|
||||
- user_email=user@email.com
|
||||
- nginxproxymanager=true
|
||||
- autoPolicyLoad=true
|
||||
volumes:
|
||||
- ./appsec-config:/etc/cp/conf
|
||||
- ./appsec-data:/etc/cp/data
|
||||
- ./appsec-logs:/var/log/nano_agent
|
||||
- ./appsec-localconfig:/ext/appsec
|
||||
command: /cp-nano-agent --standalone
|
Reference in New Issue
Block a user