-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (62 loc) · 1.52 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
57
58
59
60
61
62
63
services:
web:
container_name: board4you-server
# image: ghcr.io/gachilord/board4you-server:1.0.9
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:
- /tmp/board4you/:/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
- /tmp/board4you/:/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
adminer:
container_name: board4you-db-adminer
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: root
ports:
- 8080:80
secrets:
db_password:
file: ./secrets/db_password.txt
jwt_secret:
file: ./secrets/jwt_secret.txt