forked from kgoedecke/doop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (39 loc) · 1.21 KB
/
Copy pathdocker-compose.yml
File metadata and controls
41 lines (39 loc) · 1.21 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
# One-command self-host: `docker compose up` → http://localhost:4400
# Set BETTER_AUTH_SECRET (any long random string) before running in earnest:
# BETTER_AUTH_SECRET=$(openssl rand -hex 32) docker compose up -d
services:
doop:
build: .
ports:
- '4400:4400'
environment:
DATABASE_URL: postgres://doop:doop@db:5432/doop
BETTER_AUTH_SECRET: ${BETTER_AUTH_SECRET:-change-me-please-not-for-production}
BETTER_AUTH_URL: ${BETTER_AUTH_URL:-http://localhost:4400}
# optional — see .env.example for everything else (SMTP, ANTHROPIC_API_KEY, …)
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
SMTP_HOST: ${SMTP_HOST:-}
SMTP_PORT: ${SMTP_PORT:-}
SMTP_USER: ${SMTP_USER:-}
SMTP_PASS: ${SMTP_PASS:-}
EMAIL_FROM: ${EMAIL_FROM:-}
depends_on:
db:
condition: service_healthy
restart: unless-stopped
db:
image: postgres:16-alpine
environment:
POSTGRES_USER: doop
POSTGRES_PASSWORD: doop
POSTGRES_DB: doop
volumes:
- doop-pg:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U doop']
interval: 5s
timeout: 3s
retries: 10
restart: unless-stopped
volumes:
doop-pg: