-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yaml
62 lines (53 loc) · 1.62 KB
/
docker-compose.yaml
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
52
53
54
55
56
57
58
59
60
61
62
version: '3'
services:
snapserver:
image: 'ghcr.io/firefrei/snapcast/server:latest'
restart: always
#cap_add:
#- NET_BIND_SERVICE # Optional: allow container to bind privileged ports (>1024)
environment:
# See README.md for all environment options.
TZ: Etc/UTC
NGINX_ENABLED: "1" # enable NGINX for HTTPS -> requires to bind to port 443 by default
#NGINX_HTTPS_PORT: "4433" # use port 4433 instead of 4433
volumes:
# Snapcast: Configuration and run-time data
- snapcast-data:/app/data/
#- snapcast-config:/app/config/
#- ./config_snapcast/:/app/config/
# NGINX: HTTPS certificates
nginx-certs:/app/certs/
#- ./nginx_certs/:/app/certs/
# Network Alternative 1: Bridge container directly into your home network
#networks:
#bridged-home-network:
#ipv4_address: <desired-ip-of-container>
# Network Alternative 2: Use port-forwarding of host ports
ports:
# Snapcast Ports
- '1704-1705:1704-1705'
- '1780:1780'
# AirPlay ports
- '3689:3689'
- '5000:5000'
- '6000-6009:6000-6009/udp'
# AirPlay-2 ports
#- '319-320:319-320/udp'
#- '3689:3689'
#- '5000:5000'
#- '7000:7000'
#- '6000-6009:6000-6009/udp'
# Avahi ports
- '5353:5353'
# NGINX ports
- '443:443'
volumes:
#snapcast-config:
snapcast-data:
nginx-certs:
# Network Alternative 1
# The network `bridged-home-network` must be manually created
# with `docker network create ...` and bridged to the home network
#networks:
#bridged-home-network:
#external: true