forked from deborahgu/soundcork
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
29 lines (28 loc) · 963 Bytes
/
docker-compose.yml
File metadata and controls
29 lines (28 loc) · 963 Bytes
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
services:
soundcork:
image: ghcr.io/deborahgu/soundcork:main
# we have to have access to the speakers for config, so run in host mode
network_mode: host
environment:
# Configure the base url where soundcork is hosted.
# Use port 8000 for direct access or port 8001 for access through nginx-ETag.
- base_url=http://soundcork:8001
- data_dir=/soundcork/data
- SOUNDCORK_MODE=local
- SOUNDCORK_LOG_DIR=/soundcork/logs/traffic
volumes:
- ./data:/soundcork/data
- ./logs:/soundcork/logs
restart: unless-stopped
nginx-etag: # see https://github.com/deborahgu/soundcork/issues/129
image: nginx
container_name: nginx-ETag
# since soundcork is in host mode so is nginx
network_mode: host
volumes:
- ./nginx-ETag.conf:/etc/nginx/conf.d/default.conf:ro
restart: unless-stopped
# docker compose up
# docker compose start
# docker compose logs -f
# docker compose stop