Browse Source

use a port that doesn't conflict with other popular software

pull/1/head
Jason Dove 5 years ago
parent
commit
2d00eadc97
  1. 4
      Dockerfile
  2. 2
      ErsatzTV/Properties/launchSettings.json
  3. 4
      ErsatzTV/Startup.cs
  4. 4
      README.md
  5. 2
      docker-compose.yml

4
Dockerfile

@ -31,7 +31,7 @@ RUN dotnet publish -c release -o /app -r linux-x64 --self-contained false --no-r @@ -31,7 +31,7 @@ RUN dotnet publish -c release -o /app -r linux-x64 --self-contained false --no-r
# final stage/image
FROM runtime-base
WORKDIR /app
EXPOSE 8989
ENV ASPNETCORE_URLS http://+:8989
EXPOSE 8409
ENV ASPNETCORE_URLS http://+:8409
COPY --from=build /app ./
ENTRYPOINT ["./ErsatzTV"]

2
ErsatzTV/Properties/launchSettings.json

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
"ErsatzTV": {
"commandName": "Project",
"launchBrowser": false,
"applicationUrl": "http://0.0.0.0:8989",
"applicationUrl": "http://0.0.0.0:8409",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}

4
ErsatzTV/Startup.cs

@ -84,8 +84,8 @@ namespace ErsatzTV @@ -84,8 +84,8 @@ namespace ErsatzTV
Log.Logger.Information(
"Server will listen on port {Port} - try UI at {UI}",
8989,
"http://localhost:8989");
8409,
"http://localhost:8409");
if (!Directory.Exists(FileSystemLayout.AppDataFolder))
{

4
README.md

@ -44,14 +44,14 @@ The easiest way to run ErsatzTV is with Docker: @@ -44,14 +44,14 @@ The easiest way to run ErsatzTV is with Docker:
```
docker run -d \
-e TZ=America/Chicago \
-p 8989:8989 \
-p 8409:8409 \
-v /path/to/appdata/config:/root/.local/share/ersatztv \
-v /path/to/shared/media:/path/to/shared/media:ro \
--restart unless-stopped \
jasongdove/ersatztv
```
After running ErsatzTV for the first time, configure it by visiting the web UI at http://[address]:8989.
After running ErsatzTV for the first time, configure it by visiting the web UI at http://[address]:8409.
## Development

2
docker-compose.yml

@ -5,7 +5,7 @@ services: @@ -5,7 +5,7 @@ services:
build:
context: .
ports:
- "8989:80"
- "8409:80"
volumes:
- ersatztv:/root/.local/share/ersatztv
#- /media/shared:/media/shared:ro

Loading…
Cancel
Save