Added scaffoded project

This commit is contained in:
2026-06-29 04:39:41 -03:00
parent ab82a4b71c
commit 9bd945cc51
17 changed files with 2797 additions and 0 deletions
+48
View File
@@ -0,0 +1,48 @@
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: camfinder
POSTGRES_USER: camfinder
POSTGRES_PASSWORD: camfinder
volumes:
- camfinder-postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U camfinder -d camfinder"]
interval: 5s
timeout: 5s
retries: 10
start_period: 5s
coordinator:
build: .
command: ["coordinator"]
environment:
DATABASE_URL: postgres://camfinder:camfinder@postgres:5432/camfinder
SCAN_CIDRS: 192.168.15.0/24
SCAN_PORT: 554
SCAN_TIMEOUT_MS: 1200
SCAN_CONCURRENCY: 16
SCAN_CHUNK_SIZE: 64
COORDINATOR_BIND: 0.0.0.0:666
depends_on:
postgres:
condition: service_healthy
ports:
- "666:666"
worker:
build: .
command: ["worker"]
environment:
COORDINATOR_ADDR: coordinator:666
SCAN_PORT: 554
SCAN_TIMEOUT_MS: 1200
SCAN_CONCURRENCY: 16
WORKER_NAME: worker
depends_on:
coordinator:
condition: service_started
volumes:
camfinder-postgres: