more podman fixes

This commit is contained in:
2025-12-23 19:25:36 -06:00
parent 136276497d
commit 8c34f8b2eb
4 changed files with 19 additions and 57 deletions

View File

@@ -2,11 +2,10 @@ version: '3.8'
services:
web:
image: git.sneakygeek.net/sneakygeek/sneakyscan:master
build: .
container_name: sneakyscanner-web
# Use entrypoint script that auto-initializes database on first run
entrypoint: ["/docker-entrypoint.sh"]
command: ["python3", "-u", "-m", "web.app"]
working_dir: /app
entrypoint: ["python3", "-u", "-m", "web.app"]
# Note: Using host network mode for scanner capabilities, so no port mapping needed
# The Flask app will be accessible at http://localhost:5000
volumes:
@@ -58,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:
image: git.sneakygeek.net/sneakygeek/sneakyscan:master
build: .
container_name: sneakyscanner-init-db
entrypoint: ["python3"]
command: ["init_db.py", "--db-url", "sqlite:////app/data/sneakyscanner.db"]