-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (49 loc) · 1.11 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
services:
web:
container_name: board4you-server
image: ghcr.io/gachilord/board4you-server:1.0.9
restart: always
command: ./server
environment:
DB_HOST: db
DB_PORT: "5432"
DB_USER: "board4you"
ports:
- "3000:3000"
secrets:
- db_password
- jwt_secret
depends_on:
db:
condition: service_healthy
db:
container_name: board4you-db
image: postgres:14
restart: always
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
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: adminer
restart: always
ports:
- 8080:8080
secrets:
db_password:
file: ./secrets/db_password.txt
jwt_secret:
file: ./secrets/jwt_secret.txt