Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (67 loc) · 2.28 KB
/
Copy pathdocker-compose.yml
File metadata and controls
73 lines (67 loc) · 2.28 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
68
69
70
71
72
73
version: '3.8'
services:
db:
image: postgres:16-alpine
container_name: openplaud-db
restart: unless-stopped
environment:
POSTGRES_USER: postgres
# Default preserved for backward compat with existing self-host
# deploys. The one-line installer (scripts/install.sh) generates a
# random POSTGRES_PASSWORD and writes it to .env. Existing operators
# can rotate by setting POSTGRES_PASSWORD in .env, recreating the
# `db` volume, and restoring from a backup.
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: openplaud
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
app:
# Pull the published image by default.
# - `latest` → newest stable release (recommended)
# - `0.1.0` → pin to a specific version
# - `dev` → rolling build from `main` (unstable, opt-in)
# Override via OPENPLAUD_VERSION in .env. For local builds, see docker-compose.dev.yml.
image: ghcr.io/openplaud/openplaud:${OPENPLAUD_VERSION:-latest}
container_name: openplaud-app
restart: unless-stopped
ports:
- "3000:3000"
environment:
# Database
DATABASE_URL: postgresql://postgres:${POSTGRES_PASSWORD:-postgres}@db:5432/openplaud
# Auth
BETTER_AUTH_SECRET: ${BETTER_AUTH_SECRET}
APP_URL: ${APP_URL:-http://localhost:3000}
DISABLE_REGISTRATION: ${DISABLE_REGISTRATION:-}
# Encryption
ENCRYPTION_KEY: ${ENCRYPTION_KEY}
# Storage (optional defaults)
DEFAULT_STORAGE_TYPE: ${DEFAULT_STORAGE_TYPE:-local}
S3_ENDPOINT: ${S3_ENDPOINT:-}
S3_BUCKET: ${S3_BUCKET:-}
S3_REGION: ${S3_REGION:-}
S3_ACCESS_KEY_ID: ${S3_ACCESS_KEY_ID:-}
S3_SECRET_ACCESS_KEY: ${S3_SECRET_ACCESS_KEY:-}
volumes:
- audio:/app/audio
depends_on:
db:
condition: service_healthy
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/api/health', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"]
interval: 30s
timeout: 3s
start_period: 30s
retries: 3
volumes:
pgdata:
driver: local
audio:
driver: local