-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcompose.yaml
More file actions
39 lines (36 loc) · 726 Bytes
/
Copy pathcompose.yaml
File metadata and controls
39 lines (36 loc) · 726 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
services:
bot:
image: ghcr.io/kabo2468/oishii-bot
build:
context: .
args:
- GIT_SHA=unknown
volumes:
- ./config.json5:/app/config.json5:ro
depends_on:
db:
condition: service_healthy
restart: always
db:
image: postgres:18-alpine
restart: always
user: postgres
secrets:
- db-password
volumes:
- db-data:/var/lib/postgresql
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD_FILE=/run/secrets/db-password
expose:
- 5432
healthcheck:
test: ["CMD", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
volumes:
db-data:
secrets:
db-password:
file: db_password.secret