This docker container publish an very nice web-based media server + Let`s encrypt
10K+
This docker container publish an very nice web-based media server.
Source : http://www.subsonic.org
docker run -it -p 4040:4040 unclesamwk/subsonic
Default an volume for persist date will be created. Now you can open your subsonic media stream with http://localhost:4040
| ENV | DEFAULT | DESCRIPTION |
|---|---|---|
| HOST | 0.0.0.0 | The host name or IP address on which to bind Subsonic. Only relevant if you have multiple network interfaces and want to make Subsonic available on only one of them. The default value will bind Subsonic to all available network interfaces. |
| HTTP_PORT | 4040 | The port on which Subsonic will listen for incoming HTTP traffic. |
| HTTPS_PORT | 0 | The port on which Subsonic will listen for incoming HTTPS traffic. |
| CONTEXT_PATH | / | The context path, i.e., the last part of the Subsonic URL. Typically '/' or '/subsonic'. |
| MEMORY | 150 | The memory limit (max Java heap size) in megabytes. |
If you want secure your subsonic with let`s encrypt you need access from internet with open ports 80 + 443 to your subsonic server. Then first start traefik. The reason why start traefik in an single compose file is, you can easyily add more websites to traefik proxy.
version: '3.7'
services:
traefik:
restart: always
image: traefik:1.7
container_name: traefik
command:
- "--api"
- "--entrypoints=Name:http Address::80 Redirect.EntryPoint:https"
- "--entrypoints=Name:https Address::443 TLS"
- "--defaultentrypoints=http,https"
- "--acme"
- "--acme.storage=/data/acme.json"
- "--acme.entryPoint=https"
- "--acme.httpChallenge.entryPoint=http"
- "--acme.onHostRule=true"
- "--acme.onDemand=false"
- "[email protected]"
- "--docker"
- "--docker.domain=noez"
- "--docker.watch"
- "--docker.exposedbydefault=false"
ports:
- "80:80"
- "8080:8080"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- traefik_data:/data
networks:
- webgateway
networks:
webgateway:
driver: bridge
volumes:
traefik_data:
Now start subsonic with following compose file:
version: '3.7'
services:
subsonic:
restart: always
image: unclesamwk/subsonic:latest
networks:
- web
labels:
- "traefik.port=4040"
- "traefik.enable=true"
- "traefik.docker.network=traefik_webgateway"
- "traefik.frontend.rule=Host:subsonic.yourdomain.de"
networks:
web:
external:
name: traefik_webgateway
Connect to samba active-directory
Content type
Image
Digest
sha256:5107a86bc…
Size
226.2 MB
Last updated
over 3 years ago
docker pull unclesamwk/subsonic