Skip to content

Commit

Permalink
build(docker): switch Compose file to bind mounts (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanleo committed Jun 15, 2024
1 parent 2e1a3bc commit e3f8e99
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
16 changes: 16 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: '3.7'

services:
app:
image: ghcr.io/duncanleo/plex-dvr-hls:latest
volumes:
- type: bind
source: './config.json'
target: '/app/config.json'
read_only: true
- type: bind
source: './channels.json'
target: '/app/channels.json'
read_only: true
ports:
- '5004:5004'
14 changes: 12 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,17 @@ services:
dockerfile: './Dockerfile'
context: '.'
volumes:
- './config.json:/app/config.json'
- './channels.json:/app/channels.json'
- type: bind
source: './config.json'
target: '/app/config.json'
read_only: true
- type: bind
source: './channels.json'
target: '/app/channels.json'
read_only: true
- type: bind
source: './templates'
target: '/app/templates'
read_only: true
ports:
- '5004:5004'

0 comments on commit e3f8e99

Please sign in to comment.