-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.postgres.yml
More file actions
50 lines (48 loc) · 1.29 KB
/
Copy pathcompose.postgres.yml
File metadata and controls
50 lines (48 loc) · 1.29 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
services:
postgres:
image: postgres:18-alpine@sha256:54451ecb8ab38c24c3ec123f2fd501303a3a1856a5c66e98cecf2460d5e1e9d7
container_name: scroblarr-postgres
restart: unless-stopped
environment:
POSTGRES_USER: scroblarr
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-scroblarr}
POSTGRES_DB: scroblarr
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U scroblarr -d scroblarr"]
interval: 5s
timeout: 5s
retries: 5
scroblarr:
# image: ghcr.io/0xsysr3ll/scroblarr:latest
build:
context: .
dockerfile: Dockerfile
container_name: scroblarr
restart: unless-stopped
ports:
- "3000:3000"
environment:
NODE_ENV: production
PORT: 3000
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
POSTGRES_USER: scroblarr
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-scroblarr}
POSTGRES_DATABASE: scroblarr
depends_on:
postgres:
condition: service_healthy
healthcheck:
test:
[
"CMD-SHELL",
"wget --no-verbose --tries=1 --spider http://localhost:3000/api/v1/auth/check-admin || exit 1",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
volumes:
postgres-data: