-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Expand file tree
/
Copy pathdocker-compose.postgres.yml
More file actions
43 lines (43 loc) · 1020 Bytes
/
docker-compose.postgres.yml
File metadata and controls
43 lines (43 loc) · 1020 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
43
# Sample docker-compose file to run Kanboard with Postgres
# More information at https://docs.kanboard.org/v1/admin/docker/
name: kanboard
services:
app:
image: ${KANBOARD_IMAGE:-kanboard/kanboard:latest}
container_name: kanboard
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- data:/var/www/app/data
- plugins:/var/www/app/plugins
- certs:/etc/nginx/ssl
environment:
DATABASE_URL: postgres://kanboard:kanboard-secret@db/kanboard
depends_on:
db:
condition: service_healthy
db:
image: postgres:latest
restart: always
environment:
POSTGRES_USER: kanboard
POSTGRES_PASSWORD: kanboard-secret
POSTGRES_DB: kanboard
volumes:
- db:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "kanboard"]
start_period: 15s
interval: 10s
timeout: 5s
volumes:
data:
driver: local
plugins:
driver: local
certs:
driver: local
db:
driver: local