Fixes #2 - Add website link to app footer - Add VITE_WEBSITE_URL build arg for configurable website URL - Add Git Repository and License links to app footer - Update Join Free Alpha links to open in new tab (target=_blank)
48 lines
1.6 KiB
YAML
48 lines
1.6 KiB
YAML
services:
|
|
website:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.website
|
|
ports:
|
|
- "8080:80"
|
|
environment:
|
|
- APP_URL=${WEBSITE_APP_URL:-http://localhost:3000}
|
|
- GIT_URL=${GIT_URL:-https://git.kropa.tech/lotherk/deardiary}
|
|
restart: unless-stopped
|
|
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
args:
|
|
- VITE_GIT_URL=${GIT_URL:-https://git.kropa.tech/lotherk/deardiary}
|
|
- VITE_WEBSITE_URL=${WEBSITE_APP_URL:-http://localhost:3000}
|
|
ports:
|
|
- "3000:80"
|
|
environment:
|
|
- 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/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
|
|
volumes:
|
|
deardiary_data:
|