3v324v23 commited on
Commit
5be2ae1
·
1 Parent(s): 12d4559

add docker compose

Browse files
Files changed (3) hide show
  1. .gitignore +1 -1
  2. app/configs/settings.py +3 -0
  3. docker-compose.yml +2 -2
.gitignore CHANGED
@@ -195,7 +195,7 @@ cython_debug/
195
 
196
 
197
  .env
198
- google_application_credentials.json
199
 
200
  query_dataset
201
  video_cache.json
 
195
 
196
 
197
  .env
198
+ credentials.json
199
 
200
  query_dataset
201
  video_cache.json
app/configs/settings.py CHANGED
@@ -1,5 +1,6 @@
1
  from pydantic_settings import BaseSettings
2
  import os
 
3
 
4
  class Settings(BaseSettings):
5
  # Server
@@ -26,6 +27,8 @@ class Settings(BaseSettings):
26
 
27
  # Video Cache
28
  video_cache_file: str = os.getenv("VIDEO_CACHE_FILE", "video_cache.json")
 
 
29
 
30
  class Config:
31
  env_file = ".env"
 
1
  from pydantic_settings import BaseSettings
2
  import os
3
+ from typing import Optional
4
 
5
  class Settings(BaseSettings):
6
  # Server
 
27
 
28
  # Video Cache
29
  video_cache_file: str = os.getenv("VIDEO_CACHE_FILE", "video_cache.json")
30
+
31
+ ENV: Optional[str] = os.getenv("ENV", "dev")
32
 
33
  class Config:
34
  env_file = ".env"
docker-compose.yml CHANGED
@@ -2,13 +2,13 @@ services:
2
  web:
3
  build: .
4
  ports:
5
- - "8001:8001"
6
  volumes:
7
  - ./.env:/code/.env
8
 
9
  - ./query_dataset:/code/query_dataset
10
 
11
- - ./google_application_credentials.json:/code/google_application_credentials.json
12
 
13
  env_file:
14
  - ./.env
 
2
  web:
3
  build: .
4
  ports:
5
+ - "8001:7860"
6
  volumes:
7
  - ./.env:/code/.env
8
 
9
  - ./query_dataset:/code/query_dataset
10
 
11
+ - ./credentials.json:/code/credentials.json
12
 
13
  env_file:
14
  - ./.env