updating docker compose to be podman compliant
All checks were successful
Build and Push Docker Image / build (push) Successful in 6s

This commit is contained in:
2025-12-23 19:14:54 -06:00
parent 6bc733fefd
commit 136276497d

View File

@@ -2,8 +2,7 @@ version: '3.8'
services:
web:
build: .
image: sneakyscanner:latest
image: git.sneakygeek.net/sneakygeek/sneakyscan:master
container_name: sneakyscanner-web
# Use entrypoint script that auto-initializes database on first run
entrypoint: ["/docker-entrypoint.sh"]
@@ -46,7 +45,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
network_mode: host
networks: []
# 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()"]
@@ -59,8 +58,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: sneakyscanner:latest
image: git.sneakygeek.net/sneakygeek/sneakyscan:master
container_name: sneakyscanner-init-db
entrypoint: ["python3"]
command: ["init_db.py", "--db-url", "sqlite:////app/data/sneakyscanner.db"]
@@ -68,3 +66,4 @@ services:
- ./data:/app/data
profiles:
- tools
networks: []