podman updates

This commit is contained in:
2025-12-23 19:53:13 -06:00
parent 8c34f8b2eb
commit 51fa4caaf5
2 changed files with 4 additions and 4 deletions

View File

@@ -2,7 +2,7 @@ version: '3.8'
services:
web:
build: .
image: sneakyscan
container_name: sneakyscanner-web
working_dir: /app
entrypoint: ["python3", "-u", "-m", "web.app"]
@@ -44,7 +44,7 @@ services:
- UDP_PORTS=${UDP_PORTS:-53,67,68,69,123,161,500,514,1900}
# Scanner functionality requires privileged mode and host network for masscan/nmap
privileged: true
networks: []
network_mode: host
# Health check to ensure web service is running
healthcheck:
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:5000/api/settings/health').read()"]
@@ -57,7 +57,7 @@ services:
# Optional: Initialize database on first run
# Run with: docker-compose -f docker-compose-web.yml run --rm init-db
init-db:
build: .
image: sneakyscan
container_name: sneakyscanner-init-db
entrypoint: ["python3"]
command: ["init_db.py", "--db-url", "sqlite:////app/data/sneakyscanner.db"]