v0.1.1: System default AI config, configurable URLs, single .env, website refactor
This commit is contained in:
@@ -1,37 +1,46 @@
|
||||
services:
|
||||
website:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.website
|
||||
ports:
|
||||
- "8080:80"
|
||||
environment:
|
||||
- APP_URL=${WEBSITE_APP_URL:-http://localhost:3000}
|
||||
- GIT_URL=${GIT_URL:-https://github.com/lotherk/deardiary}
|
||||
restart: unless-stopped
|
||||
|
||||
app:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
- VITE_GIT_URL=${GIT_URL:-https://git.kropa.tech/lotherk/deardiary}
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "5173:80"
|
||||
- "3000:80"
|
||||
environment:
|
||||
- DATABASE_URL=file:/data/deardiary.db
|
||||
- MEDIA_DIR=/data/media
|
||||
- JWT_SECRET=${JWT_SECRET:-change-me-in-production}
|
||||
- PORT=3000
|
||||
- CORS_ORIGIN=${CORS_ORIGIN:-*}
|
||||
- DEFAULT_USER_EMAIL=${DEFAULT_USER_EMAIL:-}
|
||||
- DEFAULT_USER_PASSWORD=${DEFAULT_USER_PASSWORD:-}
|
||||
- BACKEND_DATABASE_URL=file:/data/deardiary.db
|
||||
- BACKEND_MEDIA_DIR=/data/media
|
||||
- BACKEND_JWT_SECRET=${BACKEND_JWT_SECRET:-change-me-in-production}
|
||||
- BACKEND_PORT=3001
|
||||
- BACKEND_CORS_ORIGIN=${BACKEND_CORS_ORIGIN:-*}
|
||||
- BACKEND_REGISTRATION_ENABLED=${BACKEND_REGISTRATION_ENABLED:-false}
|
||||
- BACKEND_DEFAULT_USER_EMAIL=${BACKEND_DEFAULT_USER_EMAIL:-}
|
||||
- BACKEND_DEFAULT_USER_PASSWORD=${BACKEND_DEFAULT_USER_PASSWORD:-}
|
||||
- BACKEND_DEFAULT_AI_PROVIDER=${BACKEND_DEFAULT_AI_PROVIDER:-groq}
|
||||
- BACKEND_DEFAULT_AI_MODEL=${BACKEND_DEFAULT_AI_MODEL:-llama-3.3-70b-versatile}
|
||||
- BACKEND_DEFAULT_AI_API_KEY=${BACKEND_DEFAULT_AI_API_KEY:-}
|
||||
- BACKEND_DEFAULT_AI_BASE_URL=${BACKEND_DEFAULT_AI_BASE_URL:-}
|
||||
volumes:
|
||||
- deardiary_data:/data
|
||||
restart: unless-stopped
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/health"]
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
docs:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.docs
|
||||
ports:
|
||||
- "4000:80"
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
deardiary_data:
|
||||
|
||||
Reference in New Issue
Block a user