build cyp from external repo

This commit is contained in:
deflax 2024-09-06 17:00:05 +03:00
parent 71e5ba0c71
commit 43ad123bd5
2 changed files with 18 additions and 6 deletions

View file

@ -15,8 +15,8 @@ services:
#environment: #environment:
#- XDG_RUNTIME_DIR=/tmp #- XDG_RUNTIME_DIR=/tmp
volumes: volumes:
- ./srv/music:/var/lib/mpd/music:ro - /srv/music:/var/lib/mpd/music:ro
- ./srv/playlists:/var/lib/mpd/playlists:rw - /srv/playlists:/var/lib/mpd/playlists:rw
- ./data:/var/lib/mpd/data:rw - ./data:/var/lib/mpd/data:rw
- ./config/mpd.conf:/etc/mpd.conf:rw - ./config/mpd.conf:/etc/mpd.conf:rw
# Time: # Time:
@ -24,12 +24,24 @@ services:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
## PipeWire support by mounting the host socket ## PipeWire support by mounting the host socket
#- /run/user/1000/pipewire-0:/tmp/pipewire-0 #- /run/user/1000/pipewire-0:/tmp/pipewire-0
#devices: devices:
# - "/dev/snd:/dev/snd" - "/dev/snd:/dev/snd"
#cap_add: cap_add:
# - SYS_NICE - SYS_NICE
healthcheck: healthcheck:
test: ["CMD-SHELL", "nc -nzv -w 3 127.0.0.1 6600 || exit 1"] test: ["CMD-SHELL", "nc -nzv -w 3 127.0.0.1 6600 || exit 1"]
interval: 60s interval: 60s
timeout: 5s timeout: 5s
retries: 3 retries: 3
cyp:
build:
context: ../cyp/
dockerfile: Dockerfile
container_name: cyp
restart: unless-stopped
ports:
- 8080:8080/tcp
volumes:
- ../cyp/_youtube:/cyp/_youtube

View file