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