This commit is contained in:
JMARyA 2024-10-05 01:21:43 +02:00
parent 311b315990
commit 1979fc246e
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
16 changed files with 1644 additions and 1391 deletions

27
docker-compose.yml Normal file
View file

@ -0,0 +1,27 @@
version: '3'
services:
watchdogs:
build: .
ports:
- "8080:8000"
depends_on:
- postgres
volumes:
- ./videos:/videos # Video files
environment:
- "DATABASE_URL=postgres://user:pass@postgres/watchdogs"
- "RUST_LOG=info"
- "ROCKET_ADDRESS=0.0.0.0"
command: "/watchdogs /videos"
postgres:
image: timescale/timescaledb:latest-pg16
restart: always
ports:
- 5432:5432
volumes:
- ./db:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=pass
- POSTGRES_DB=watchdogs