2021-03-26 21:31:32 +01:00
|
|
|
version: "3.7"
|
2021-03-24 22:41:02 +01:00
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
musiccast-repairkit:
|
|
|
|
|
build: .
|
|
|
|
|
image: nicolabs/musiccast-repairkit
|
2021-03-26 21:31:32 +01:00
|
|
|
command: "-s ./scripts/sync-volume.js --source ${YAMAHA_SOURCE_IP} --target ${YAMAHA_SPEAKER_IP}"
|
|
|
|
|
# See https://github.com/nodejs/docker-node/blob/main/docs/BestPractices.md#handling-kernel-signals
|
|
|
|
|
init: true
|
2021-03-24 22:41:02 +01:00
|
|
|
ports:
|
|
|
|
|
- target: 41100
|
2021-03-25 00:36:52 +01:00
|
|
|
published: 41100
|
2021-03-24 22:41:02 +01:00
|
|
|
protocol: udp
|
|
|
|
|
mode: host
|
2021-03-25 00:36:52 +01:00
|
|
|
# Define SPEAKERS_IP, YAMAHA_IP in this .env file
|
|
|
|
|
# Do not specify LOCAL_IP as it will probably fail to bind
|
|
|
|
|
# inside the container, which has is own private IP range
|
|
|
|
|
#env_file: .env
|
2021-03-24 22:41:02 +01:00
|
|
|
deploy:
|
|
|
|
|
mode: replicated
|
|
|
|
|
replicas: 1
|
|
|
|
|
logging:
|
|
|
|
|
options:
|
|
|
|
|
max-size: "200k"
|
|
|
|
|
max-file: "10"
|