-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
42 lines (40 loc) · 937 Bytes
/
compose.yaml
File metadata and controls
42 lines (40 loc) · 937 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
services:
rainbbit:
image: ghcr.io/birabittoh/rainbbit:main
build: .
container_name: rainbbit
restart: unless-stopped
ports:
- 3000:3000
env_file:
- .env
volumes:
- ./data:/app/data
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 3
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres:18
container_name: rainbbit-db
restart: unless-stopped
environment:
POSTGRES_DB: rainbbit
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
volumes:
- ./db-data/macchia:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
networks:
- default
networks:
default:
name: rainbbit-network