-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (55 loc) · 1.3 KB
/
docker-compose.yml
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
51
52
53
54
55
56
services:
web:
container_name: board4you-server
image: ghcr.io/gachilord/board4you-server:2.1.0
build: .
restart: always
command: ./server
ulimits:
nofile:
soft: 30000
hard: 100000
environment:
DB_HOST: db
DB_PORT: "5432"
DB_USER: "board4you"
ports:
- "3000:3000"
secrets:
- db_password
- jwt_secret
depends_on:
db:
condition: service_healthy
volumes:
- boardtmp:/tmp/board4you/
db:
container_name: board4you-db
image: postgres:16
restart: always
command: postgres -c config_file=/etc/postgresql/postgresql.conf
environment:
POSTGRES_USER: "board4you"
POSTGRES_PASSWORD_FILE: "/run/secrets/db_password"
PGDATA: "/var/lib/postgresql/data/pgdata"
volumes:
- /var/lib/postgresql/data:/var/lib/postgresql/data
- boardtmp:/tmp/board4you/
- ./db/postgres.conf/:/etc/postgresql/postgresql.conf
secrets:
- db_password
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U board4you -d board4you"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
secrets:
db_password:
file: ./secrets/db_password.txt
jwt_secret:
file: ./secrets/jwt_secret.txt
volumes:
boardtmp: