mirror of
				https://github.com/zoriya/Kyoo.git
				synced 2025-11-04 03:27:14 -05:00 
			
		
		
		
	Adding a dev docker compose
This commit is contained in:
		
							parent
							
								
									76a57459af
								
							
						
					
					
						commit
						b01198c110
					
				
							
								
								
									
										2
									
								
								.env.example
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								.env.example
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,2 @@
 | 
			
		||||
TVDB__APIKEY=
 | 
			
		||||
THEMOVIEDB__APIKEY=
 | 
			
		||||
							
								
								
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@ -10,6 +10,9 @@ libtranscoder.so
 | 
			
		||||
libtranscoder.dylib
 | 
			
		||||
transcoder.dll
 | 
			
		||||
 | 
			
		||||
video
 | 
			
		||||
.env
 | 
			
		||||
 | 
			
		||||
## Ignore Visual Studio temporary files, build results, and
 | 
			
		||||
## files generated by popular Visual Studio add-ons.
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										36
									
								
								docker-compose.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								docker-compose.yml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,36 @@
 | 
			
		||||
version: "3.8"
 | 
			
		||||
 | 
			
		||||
services:
 | 
			
		||||
  kyoo:
 | 
			
		||||
    build: .
 | 
			
		||||
    restart: on-failure
 | 
			
		||||
    environment:
 | 
			
		||||
      - KYOO_DATADIR=/var/lib/kyoo
 | 
			
		||||
      - BASICS__PUBLICURL=http://localhost:5000
 | 
			
		||||
      - BASICS__MetadataInShow=false
 | 
			
		||||
      - DATABASE__ENABLED=postgres
 | 
			
		||||
      - DATABASE__CONFIGURATIONS__POSTGRES__SERVER=postgres
 | 
			
		||||
      - DATABASE__CONFIGURATIONS__POSTGRES__USER ID=kyoo
 | 
			
		||||
      - DATABASE__CONFIGURATIONS__POSTGRES__PASSWORD=kyooPassword
 | 
			
		||||
      - TVDB__APIKEY=${TVDB__APIKEY}
 | 
			
		||||
      - THEMOVIEDB__APIKEY=${THEMOVIEDB__APIKEY}
 | 
			
		||||
    ports:
 | 
			
		||||
      - "5000:5000"
 | 
			
		||||
    depends_on:
 | 
			
		||||
      - postgres
 | 
			
		||||
    volumes:
 | 
			
		||||
      - kyoo:/var/lib/kyoo
 | 
			
		||||
      - ./video:/video
 | 
			
		||||
  postgres:
 | 
			
		||||
    image: "postgres"
 | 
			
		||||
    restart: on-failure
 | 
			
		||||
    environment:
 | 
			
		||||
      - POSTGRES_USER=kyoo
 | 
			
		||||
      - POSTGRES_PASSWORD=kyooPassword
 | 
			
		||||
    volumes:
 | 
			
		||||
      - db:/var/lib/postgresql/data
 | 
			
		||||
 | 
			
		||||
volumes:
 | 
			
		||||
  kyoo:
 | 
			
		||||
  db:
 | 
			
		||||
 | 
			
		||||
@ -70,7 +70,7 @@ We are going to take a look at the fields you might want to change to tailor Kyo
 | 
			
		||||
- ```tvdb```
 | 
			
		||||
  - ```apikey```: The API key that will be used to interact with the TVDB's API. See [there](https://thetvdb.com/api-information) to get one
 | 
			
		||||
 | 
			
		||||
- ```the-moviedb```
 | 
			
		||||
- ```themoviedb```
 | 
			
		||||
  - ```apikey```: The API key that will be used to interact with TMDB's API. See [there](https://developers.themoviedb.org/3/getting-started/introduction) to get one
 | 
			
		||||
 | 
			
		||||
## Using a Container
 | 
			
		||||
 | 
			
		||||
@ -76,7 +76,7 @@
 | 
			
		||||
  "tvdb": {
 | 
			
		||||
    "apiKey": ""
 | 
			
		||||
  },
 | 
			
		||||
  "the-moviedb": {
 | 
			
		||||
  "themoviedb": {
 | 
			
		||||
    "apiKey": ""
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -48,7 +48,7 @@ namespace Kyoo.TheMovieDb
 | 
			
		||||
			if (!Enabled)
 | 
			
		||||
			{
 | 
			
		||||
				logger.LogWarning("No API key configured for TheMovieDB provider. " +
 | 
			
		||||
					"To enable TheMovieDB, specify one in the setting the-moviedb:APIKEY ");
 | 
			
		||||
					"To enable TheMovieDB, specify one in the setting themoviedb:APIKEY");
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
@ -62,7 +62,7 @@ namespace Kyoo.TheMovieDb
 | 
			
		||||
		public string Description => "A metadata provider for TheMovieDB.";
 | 
			
		||||
 | 
			
		||||
		/// <inheritdoc />
 | 
			
		||||
		public bool Enabled => !string.IsNullOrEmpty(_configuration.GetValue<string>("the-moviedb:apikey"));
 | 
			
		||||
		public bool Enabled => !string.IsNullOrEmpty(_configuration.GetValue<string>("themoviedb:apikey"));
 | 
			
		||||
 | 
			
		||||
		/// <inheritdoc />
 | 
			
		||||
		public Dictionary<string, Type> Configuration => new()
 | 
			
		||||
 | 
			
		||||
@ -26,7 +26,7 @@ namespace Kyoo.TheMovieDb.Models
 | 
			
		||||
		/// <summary>
 | 
			
		||||
		/// The path to get this option from the root configuration.
 | 
			
		||||
		/// </summary>
 | 
			
		||||
		public const string Path = "the-moviedb";
 | 
			
		||||
		public const string Path = "themoviedb";
 | 
			
		||||
 | 
			
		||||
		/// <summary>
 | 
			
		||||
		/// The api key of TheMovieDb.
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user