-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yaml
More file actions
67 lines (63 loc) · 2.16 KB
/
Copy pathcompose.yaml
File metadata and controls
67 lines (63 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
services:
server:
build:
context: .
dockerfile: server/Dockerfile
ports:
- "${SERVER_PORT:-8080}:8080"
environment:
NSTREAM_DATABASE_URL: jdbc:postgresql://postgres:5432/${POSTGRES_DB:-nstream}
NSTREAM_DATABASE_USER: ${POSTGRES_USER:-nstream}
NSTREAM_DATABASE_PASSWORD: ${POSTGRES_PASSWORD:-nstream_local_password}
NSTREAM_REDIS_URI: redis://redis:6379
NSTREAM_JWT_SECRET: ${NSTREAM_JWT_SECRET:-replace-this-local-development-secret-before-deploying}
NSTREAM_SMTP_HOST: mailpit
NSTREAM_SMTP_PORT: 1025
NSTREAM_SMTP_FROM: ${NSTREAM_SMTP_FROM:-noreply@nstream.local}
NSTREAM_WATCHMODE_API_KEY: ${NSTREAM_WATCHMODE_API_KEY}
NSTREAM_WATCHMODE_BASE_URL: ${NSTREAM_WATCHMODE_BASE_URL:-https://api.watchmode.com/v1}
NSTREAM_GROQ_API_KEY: ${NSTREAM_GROQ_API_KEY}
NSTREAM_GROQ_BASE_URL: ${NSTREAM_GROQ_BASE_URL:-https://api.groq.com/openai/v1}
NSTREAM_GROQ_FAST_MODEL: ${NSTREAM_GROQ_FAST_MODEL:-openai/gpt-oss-20b}
NSTREAM_GROQ_ADVANCED_MODEL: ${NSTREAM_GROQ_ADVANCED_MODEL:-openai/gpt-oss-120b}
NSTREAM_LICENSED_TRAILERS_JSON: ${NSTREAM_LICENSED_TRAILERS_JSON:-}
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
restart: unless-stopped
postgres:
image: postgres:17-alpine
environment:
POSTGRES_DB: ${POSTGRES_DB:-nstream}
POSTGRES_USER: ${POSTGRES_USER:-nstream}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-nstream_local_password}
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 5s
timeout: 5s
retries: 10
redis:
image: redis:7-alpine
ports:
- "${REDIS_PORT:-6379}:6379"
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 10
mailpit:
image: axllent/mailpit:v1.27
ports:
- "${MAILPIT_SMTP_PORT:-1025}:1025"
- "${MAILPIT_UI_PORT:-8025}:8025"
volumes:
postgres-data:
redis-data: