podman updates
This commit is contained in:
@@ -2,7 +2,7 @@ version: '3.8'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
build: .
|
image: sneakyscan
|
||||||
container_name: sneakyscanner-web
|
container_name: sneakyscanner-web
|
||||||
working_dir: /app
|
working_dir: /app
|
||||||
entrypoint: ["python3", "-u", "-m", "web.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}
|
- UDP_PORTS=${UDP_PORTS:-53,67,68,69,123,161,500,514,1900}
|
||||||
# Scanner functionality requires privileged mode and host network for masscan/nmap
|
# Scanner functionality requires privileged mode and host network for masscan/nmap
|
||||||
privileged: true
|
privileged: true
|
||||||
networks: []
|
network_mode: host
|
||||||
# Health check to ensure web service is running
|
# Health check to ensure web service is running
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:5000/api/settings/health').read()"]
|
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
|
# Optional: Initialize database on first run
|
||||||
# Run with: docker-compose -f docker-compose-web.yml run --rm init-db
|
# Run with: docker-compose -f docker-compose-web.yml run --rm init-db
|
||||||
init-db:
|
init-db:
|
||||||
build: .
|
image: sneakyscan
|
||||||
container_name: sneakyscanner-init-db
|
container_name: sneakyscanner-init-db
|
||||||
entrypoint: ["python3"]
|
entrypoint: ["python3"]
|
||||||
command: ["init_db.py", "--db-url", "sqlite:////app/data/sneakyscanner.db"]
|
command: ["init_db.py", "--db-url", "sqlite:////app/data/sneakyscanner.db"]
|
||||||
|
|||||||
2
setup.sh
2
setup.sh
@@ -107,7 +107,7 @@ echo "Starting SneakyScanner..."
|
|||||||
echo "This may take a few minutes on first run..."
|
echo "This may take a few minutes on first run..."
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
podman-compose build
|
podman build --network=host -t sneakyscan .
|
||||||
podman-compose up -d
|
podman-compose up -d
|
||||||
|
|
||||||
# Wait for service to be healthy
|
# Wait for service to be healthy
|
||||||
|
|||||||
Reference in New Issue
Block a user