Files
bikeApp/docker-compose.yml
T
fegger 947b64b50e 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.
2026-05-20 00:39:25 +02:00

47 lines
1.3 KiB
YAML

services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "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:
POSTGRES_USER: bikeapp
POSTGRES_PASSWORD: bikeapp
POSTGRES_DB: bikeapp
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U bikeapp -d bikeapp"]
interval: 5s
timeout: 5s
retries: 5
volumes:
postgres_data:
# ollama_data: