commit 3d7da816adced04d36dd41ea25131d85a8b46c3c Author: marcio fernandes Date: Tue Oct 26 21:08:23 2021 +0100 project created diff --git a/docker/.gitignore b/docker/.gitignore new file mode 100644 index 0000000..aab1bd0 --- /dev/null +++ b/docker/.gitignore @@ -0,0 +1,4 @@ +**.env +_volumes +_volumes +.vscode diff --git a/docker/README.md b/docker/README.md new file mode 100644 index 0000000..e69de29 diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml new file mode 100644 index 0000000..f911efa --- /dev/null +++ b/docker/docker-compose.yaml @@ -0,0 +1,46 @@ +version: '3' +services: + lms: + container_name: lms + image: lmscommunity/logitechmediaserver + volumes: + - lmsconfig:/config:rw + - music:/music:ro + - lmsplaylists:/playlists:rw + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro + ports: + - 9000:9000/tcp + - 9090:9090/tcp + - 3483:3483/tcp + - 3483:3483/udp + networks: + corehomenetwork: + ipv4_address: ${LMS_MACVLAN_IP} + restart: always +volumes: + lmsconfig: + name: lms_config + driver: local + driver_opts: + type: ${LMS_VOLUME_CONFIG_TYPE} + o: ${LMS_VOLUME_CONFIG_O} + device: "${LMS_VOLUME_CONFIG_DEVICE}" + lmsplaylists: + name: lms_playlists + driver: local + driver_opts: + type: ${LMS_VOLUME_PLAYLISTS_TYPE} + o: ${LMS_VOLUME_PLAYLISTS_O} + device: "${LMS_VOLUME_PLAYLISTS_DEVICE}" + music: + name: music + driver: local + driver_opts: + type: ${LMS_VOLUME_MUSIC_TYPE} + o: ${LMS_VOLUME_MUSIC_O} + device: "${LMS_VOLUME_MUSIC_DEVICE}" +networks: + corehomenetwork: + external: true + name: macvlan_pub_net