Add MPD docker setup
This commit is contained in:
parent
bd503eaa0d
commit
4259710626
10 changed files with 170 additions and 77 deletions
22
templates/mpd/docker-compose.j2
Normal file
22
templates/mpd/docker-compose.j2
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
networks:
|
||||
mpd-net:
|
||||
ipam:
|
||||
config:
|
||||
- subnet: '{{ mpd_subnet }}'
|
||||
|
||||
services:
|
||||
mpd:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
volumes:
|
||||
- {{ mpd_config_dir }}:/app/config
|
||||
- {{ mpd_state_dir }}:/app/state
|
||||
- {{ mpd_playlist_dir }}:/app/playlists
|
||||
- {{ mpd_music_dir }}:/app/music
|
||||
restart: always
|
||||
networks:
|
||||
mpd-net:
|
||||
ipv4_address: '{{ mpd_app_ip }}'
|
||||
Loading…
Add table
Add a link
Reference in a new issue