forked from usetrmnl/terminus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
44 lines (41 loc) · 911 Bytes
/
compose.yaml
File metadata and controls
44 lines (41 loc) · 911 Bytes
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
name: "terminus"
services:
web:
init: true
build:
context: .
environment:
API_URI: ${API_URI}
DATABASE_URL: postgres://${PG_USER}:${PG_PASSWORD}@database:5432/${PG_DATABASE}
ports:
- "2300:2300"
restart: unless-stopped
depends_on:
database:
condition: service_healthy
deploy:
resources:
limits:
memory: 1G
cpus: "1.0"
database:
image: postgres:17.4
restart: unless-stopped
volumes:
- database-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${PG_USER}
POSTGRES_DB: ${PG_DATABASE}
POSTGRES_PASSWORD: ${PG_PASSWORD}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${PG_USER}"]
interval: 10s
timeout: 5s
retries: 5
deploy:
resources:
limits:
memory: 1G
cpus: "1.0"
volumes:
database-data: