Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
ryaneggz committed Nov 3, 2024
1 parent f8f13c3 commit c3d5dce
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
4 changes: 2 additions & 2 deletions backend/src/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

## APP
APP_ENV = os.environ.get("APP_ENV", "local")
APP_VERSION_DEFAULT = subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD']).decode('utf-8').strip()
APP_VERSION = os.environ.get("APP_VERSION", APP_VERSION_DEFAULT)
# APP_VERSION_DEFAULT = subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD']).decode('utf-8').strip()
APP_VERSION = os.environ.get("APP_VERSION", '0.0.1')
APP_SECRET = os.environ.get("APP_SECRET")

APP_LOG_LEVEL = os.environ.get("APP_LOG_LEVEL", "INFO")
Expand Down
27 changes: 14 additions & 13 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,20 @@ services:
volumes:
- ./docker/redis/data:/data

# API
api:
container_name: api
image: promptengineers/llm-server:6e8b6df
# build:
# context: ./backend
# dockerfile: Dockerfile
volumes:
- ./backend/data:/app/data # Mount for SQLite database to host directory
ports:
- 8000:8000
env_file:
- ./backend/.env

# # SearXNG
# searxng:
# image: searxng/searxng
Expand Down Expand Up @@ -68,19 +82,6 @@ services:
# - ~/minio/config:/root/.minio
# command: server /data --console-address ":9001"

# # API
# api:
# container_name: api
# build:
# context: ./backend
# dockerfile: Dockerfile
# volumes:
# - ./backend/data:/app/data # Mount for SQLite database to host directory
# ports:
# - 8000:8000
# env_file:
# - ./backend/.env

# # Proxy (Nginx)
# nginx:
# image: nginx:latest
Expand Down

0 comments on commit c3d5dce

Please sign in to comment.