-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
32 lines (31 loc) · 812 Bytes
/
docker-compose.yaml
File metadata and controls
32 lines (31 loc) · 812 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
services:
app:
image: banana-split
ports:
- "8000:8000"
depends_on:
- database
environment:
- BANANASPLIT_DATABASE_URL=postgres://postgres:postgres@database/bananasplit_dev
volumes:
- ./config/dev.properties:/opt/banana-split/config/dev.properties
database:
image: "postgres:18-alpine"
restart: always
environment:
- POSTGRES_DB=bananasplit_dev
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5432:5432"
command: ["postgres", "-c", "log_statement=all"]
volumes:
- db-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 1s
retries: 6
start_period: 60s
timeout: 10s
volumes:
db-data: