Self-Hosted Movie and TV Show management system hosted on Docker
259
Fill in the following appsettings.json file with your API keys and connection string information and save it at a location that will be accessible from the docker container. Using "MultipleActiveResultSets=true;TrustServerCertificate=true" with the SQL connection string has worked best for this application.
{
"ConnectionStrings": {
"DefaultConnection": " "
},
"Authentication": {
"Google": {
"ClientSecret": "",
"ClientId": ""
},
"Facebook": {
"AppSecret": "",
"AppId": ""
}
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*"
}
docker pull levibickel/flix:latest
mkdir /flix/library
mkdir /flix/config
docker run --hostname=flix --env=ASPNETCORE_URLS=https://+:443;http://+:80 --env=ASPNETCORE_Kestrel__Certificates__Default__Password=SecurePassword --env=ASPNETCORE_Kestrel__Certificates__Default__Path=/config/flix.pfx --env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --env=DOTNET_RUNNING_IN_CONTAINER=true --env=DOTNET_VERSION=7.0.4 --env=ASPNET_VERSION=7.0.4 --volume=/flix/library/:/video --volume=/flix/config/appsettings.json:/app/appsettings.json --volume=/flix/config:/config --workdir=/app -p 443:443 -p 80:80 --label='com.microsoft.created-by=visual-studio' --label='com.microsoft.visual-studio.project-name=Flix' --runtime=runc -d levibickel/flix:latest
nano appsettings.json
docker restart flix
https://dockercontainerIP:port
The docker compose setup is the recommended setup method.
version: "3"
services:
flix:
image: levibickel/flix:latest
container_name: flix
environment:
- PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- ASPNETCORE_URLS=https://+:443;http://+:80
- ASPNETCORE_Kestrel__Certificates__Default__Password=certificatepassword
- ASPNETCORE_Kestrel__Certificates__Default__Path=/config/flix.pfx
- DOTNET_RUNNING_IN_CONTAINER=true
- DOTNET_VERSION=7.0.4
- ASPNET_VERSION=7.0.4
volumes:
- /path/to/flix/library/:/video
- /path/to/flix/config:/config
- /path/to/flix/config/appsettings.json:/app/appsettings.json
ports:
- 80:80
- 443:443
restart: unless-stopped
/example movie/example movie.mp4
Content type
Image
Digest
sha256:0ae09d52d…
Size
125.6 MB
Last updated
over 3 years ago
docker pull levibickel/flix