33 lines
772 B
YAML
33 lines
772 B
YAML
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: akern-genai-app
|
|
ports:
|
|
- "${PORT:-8000}:8000"
|
|
environment:
|
|
# Application configuration
|
|
- PORT=${PORT:-8000}
|
|
- HOST=${HOST:-0.0.0.0}
|
|
- WORKERS=${WORKERS:-1}
|
|
- LOG_LEVEL=${LOG_LEVEL:-info}
|
|
|
|
# Google GenAI configuration (load from .env file)
|
|
- GOOGLE_APPLICATION_CREDENTIALS=${GOOGLE_APPLICATION_CREDENTIALS}
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test:
|
|
[
|
|
"CMD",
|
|
"wget",
|
|
"--no-verbose",
|
|
"--tries=1",
|
|
"--spider",
|
|
"http://${HOST:-127.0.0.1}:${PORT:-8000}/",
|
|
]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 5s
|