-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.example.yml
More file actions
53 lines (49 loc) · 1.42 KB
/
docker-compose.example.yml
File metadata and controls
53 lines (49 loc) · 1.42 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
# Pluma — example Docker Compose file for local development.
#
# ⚠️ The default POSTGRES_PASSWORD is "pluma" — NOT safe for production.
# For production, set a strong password via .env or inline env vars:
# DB_PASSWORD=<strong-secret> docker compose up -d
# and pin image versions to a specific release tag (e.g. v1.2.0).
#
# Copy this file and start the stack:
# cp docker-compose.example.yml docker-compose.yml
# docker compose up -d
#
# UI → http://localhost:3000
# API → http://localhost:2137
#
# To upgrade to a new release, see: https://pluma.to/upgrading
services:
db:
image: postgres:16
environment:
POSTGRES_USER: ${DB_USER:-pluma}
POSTGRES_PASSWORD: ${DB_PASSWORD:-pluma}
POSTGRES_DB: ${DB_NAME:-pluma}
volumes:
- db_data:/var/lib/postgresql/data
healthcheck:
test:
["CMD-SHELL", "pg_isready -U ${DB_USER:-pluma} -d ${DB_NAME:-pluma}"]
interval: 5s
timeout: 5s
retries: 10
api:
image: ghcr.io/403-html/pluma-api:v1.4.2
ports:
- "2137:2137"
environment:
DATABASE_URL: postgresql://${DB_USER:-pluma}:${DB_PASSWORD:-pluma}@db:5432/${DB_NAME:-pluma}?schema=public
depends_on:
db:
condition: service_healthy
app:
image: ghcr.io/403-html/pluma-app:v1.4.2
ports:
- "3000:3000"
environment:
API_URL: ${API_URL:-http://api:2137}
depends_on:
- api
volumes:
db_data: