diff --git a/app/core/config.py b/app/core/config.py index 77d4509..584c873 100644 --- a/app/core/config.py +++ b/app/core/config.py @@ -73,6 +73,7 @@ class Settings(BaseSettings): CATEGORY_PATH: str = Field(default="/app/service/attribute/config/descriptor/category/category_dis.csv", description="") SEG_CACHE_PATH: str = Field(default="/seg_cache/", description="") RECOMMEND_PATH_PREFIX: str = Field(default="/app/service/recommend/", description="") + SERVE_PORT: int = Field(default=2010, description="") settings = Settings() diff --git a/docker-compose.yml b/docker-compose.yml index a0bd4de..6a8b18d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,20 +6,8 @@ services: working_dir: /app volumes: - ./app:/app/app - - ./.env_prod:/app/.env + - ./.env:/app/.env - /etc/localtime:/etc/localtime:ro - ./seg_cache:/seg_cache ports: - - "10200:80" - depends_on: - - redis - redis: - image: redis - container_name: aida_redis - restart: always - ports: - - "6400:6379" - volumes: - - ./redis/data:/data - - ./redis/conf/redis.conf:/etc/redis/redis.conf - command: redis-server /etc/redis/redis.conf --appendonly yes \ No newline at end of file + - "${SERVE_PORT}:80 \ No newline at end of file