Skip to content

Commit

Permalink
Bind mount for video data volume
Browse files Browse the repository at this point in the history
  • Loading branch information
sdunesme committed Oct 25, 2022
1 parent c30f1d8 commit b6560bc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,7 @@ dmypy.json

# Git
.git/

# Video data
/videos

5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,7 @@ prometheus/alertmanager.yml
prometheus/cert.pem
prometheus/privkey.pem
prometheus/snmp_targets.json
prometheus/ping_targets.json
prometheus/ping_targets.json

# Video data
/videos
8 changes: 4 additions & 4 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ services:
- "21:21"
- "21000-21010:21000-21010"
volumes:
- video-data:/data
- ${PWD}/videos:/data

app:
build: .
Expand All @@ -49,22 +49,22 @@ services:
TZ: $SCHEDULER_TIMEZONE
volumes:
- ${PWD}/.env:/app/.env
- video-data:/data
- ${PWD}/videos:/data
- prometheus-config:/etc/prometheus
- grafana-config:/etc/grafana

worker:
image: woodcam-rm_app:latest
restart: always
command: celery -A woodcamrm.celery worker --loglevel=info -c 10
command: celery -A woodcamrm.celery worker --loglevel=info -c 3
depends_on:
db:
condition: service_healthy
environment:
TZ: $SCHEDULER_TIMEZONE
volumes:
- ${PWD}/.env:/app/.env
- video-data:/data
- ${PWD}/videos:/data

prometheus:
image: prom/prometheus:v2.36.1
Expand Down

0 comments on commit b6560bc

Please sign in to comment.