watchdogs/docker-compose.yml
JMARyA 74de914688
Some checks failed
ci/woodpecker/push/build Pipeline failed
update
2024-12-14 23:33:47 +01:00

26 lines
587 B
YAML

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