48 lines
1.3 KiB
YAML
48 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://100.103.83.12:11435
|
|
OLLAMA_MODEL: qwen3:32b
|
|
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:
|