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: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: