-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (47 loc) · 1.27 KB
/
docker-compose.yml
File metadata and controls
51 lines (47 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
services:
sharm:
build:
context: .
dockerfile: Dockerfile
args:
FIFO_PATH: ${FIFO_PATH}
FIFO_PATH_STEREO: ${FIFO_PATH_STEREO}
MPD_CLIENT_PORT: ${MPD_CLIENT_PORT}
MPD_STREAM_PORT: ${MPD_STREAM_PORT}
SNAPSERVER_PORT: ${SNAPSERVER_PORT}
SNAPSERVER_HTTP_PORT: ${SNAPSERVER_HTTP_PORT}
YMPD_PORT: ${YMPD_PORT}
container_name: sharm
cap_add:
- IPC_LOCK
- SYS_NICE
shm_size: 256M
ulimits:
memlock:
soft: 268435456
hard: 536870912
# rtprio: 95
# cpu_rt_runtime: 950000
# cpu_rt_period: 1000000
restart: unless-stopped
ports:
- ${MPD_CLIENT_PORT}:${MPD_CLIENT_PORT} # MPD Client
- ${MPD_STREAM_PORT}:${MPD_STREAM_PORT} # Stream
- ${SNAPSERVER_PORT}:${SNAPSERVER_PORT} # snapserver
- ${SNAPSERVER_HTTP_PORT}:${SNAPSERVER_HTTP_PORT} # snapserver http
- ${YMPD_PORT}:${YMPD_PORT} # ympd
volumes:
- ./media:/var/lib/mpd/music:rw
- sharm_data:/var/lib/mpd
# healthcheck:
# test: ["CMD-SHELL", "nc -nzv -w 3 127.0.0.1 6600 || exit 1"]
# interval: 10s
# timeout: 1s
# retries: 3
networks:
- sharm-network
volumes:
sharm_data:
networks:
sharm-network:
driver: bridge