-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (46 loc) · 1.52 KB
/
docker-compose.yml
File metadata and controls
49 lines (46 loc) · 1.52 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
# docker-compose.yml - PromptPipe development/production stack
#
# Data persistence: All durable state is stored in named volumes.
# "docker compose down && docker compose up -d" preserves all state.
# Use "docker compose down -v" to explicitly destroy volumes.
services:
promptpipe:
build:
context: .
dockerfile: docker/Dockerfile
ports:
- "${API_PORT:-8080}:8080"
environment:
- DATABASE_DSN=${DATABASE_DSN:-postgres://promptpipe:promptpipe@postgres:5432/promptpipe?sslmode=disable}
- WHATSAPP_DB_DSN=${WHATSAPP_DB_DSN:-file:/data/whatsmeow.db?_foreign_keys=on}
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- API_ADDR=:8080
- PROMPTPIPE_STATE_DIR=/data
- PROMPTPIPE_DEBUG=${PROMPTPIPE_DEBUG:-false}
- GENAI_MODEL=${GENAI_MODEL:-}
- GENAI_TEMPERATURE=${GENAI_TEMPERATURE:-0.1}
- AUTO_ENROLL_NEW_USERS=${AUTO_ENROLL_NEW_USERS:-false}
- AUTO_FEEDBACK_AFTER_PROMPT_ENABLED=${AUTO_FEEDBACK_AFTER_PROMPT_ENABLED:-true}
volumes:
- promptpipe-data:/data
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: promptpipe
POSTGRES_PASSWORD: promptpipe
POSTGRES_DB: promptpipe
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U promptpipe"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
promptpipe-data:
postgres-data: