Remove .env.example and fix auth cookie secure flag

Delete the environment variable example file. Add error handling to the
Ollama AI route. Update Docker configuration to support Ollama services
and create required image directories. Fix indentation in auth library
and allow overriding secure cookie setting in non-production environments.
This commit is contained in:
2026-05-20 00:39:25 +02:00
parent 499894474a
commit 947b64b50e
5 changed files with 82 additions and 68 deletions
+16 -3
View File
@@ -4,15 +4,27 @@ services:
context: .
dockerfile: Dockerfile
ports:
- '3333:3000'
- "3333:3000"
environment:
DATABASE_URL: postgresql://bikeapp:bikeapp@db:5432/bikeapp
JWT_SECRET: ${JWT_SECRET:-your-super-secret-jwt-key-change-in-production}
OLLAMA_URL: http://ollama:11434
COOKIE_SECURE: "false"
depends_on:
db:
condition: service_healthy
# ollama:
# condition: service_started
restart: unless-stopped
# ollama:
# image: ollama/ollama:latest
# ports:
# - "11434:11434"
# volumes:
# - ollama_data:/root/.ollama
# restart: unless-stopped
db:
image: postgres:16-alpine
environment:
@@ -22,12 +34,13 @@ services:
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- '5432:5432'
- "5432:5432"
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U bikeapp -d bikeapp']
test: ["CMD-SHELL", "pg_isready -U bikeapp -d bikeapp"]
interval: 5s
timeout: 5s
retries: 5
volumes:
postgres_data:
# ollama_data: