-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yaml
More file actions
36 lines (34 loc) · 747 Bytes
/
compose.yaml
File metadata and controls
36 lines (34 loc) · 747 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
---
name: ytrssil
services:
postgres:
image: postgres:18
restart: unless-stopped
environment:
POSTGRES_PASSWORD: ytrssil
POSTGRES_USER: ytrssil
POSTGRES_DB: ytrssil
ports:
- 5432:5432
volumes:
- postgres:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 5s
timeout: 2s
retries: 5
api:
image: theedgeofrage/ytrssil:api
restart: unless-stopped
depends_on:
- postgres
environment:
DB_URI: "postgresql://ytrssil:ytrssil@postgres/ytrssil?sslmode=disable"
PORT: "80"
ports:
- "8080:80"
volumes:
- data:/var/lib/ytrssil
volumes:
postgres:
data: