Skip to content

Commit 840bfd2

Browse files
committed
postgres 17
1 parent a6d0ef9 commit 840bfd2

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docker-compose.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1-
version: '3.1'
21
services:
32
db:
4-
image: postgres:15-bookworm
3+
image: public.ecr.aws/docker/library/postgres:17-trixie
54
restart: always
65
environment:
76
POSTGRES_USER: takeoutapp
87
POSTGRES_PASSWORD: takeoutapp
98
POSTGRES_DB: takeout_app_development
109
volumes:
11-
- 'postgres15:/var/lib/postgresql/data'
10+
- 'postgres17:/var/lib/postgresql/data'
1211
ports:
1312
- '127.0.0.1::5432'
13+
healthcheck:
14+
test: ["CMD-SHELL", "pg_isready"]
15+
interval: 10s
16+
timeout: 5s
17+
retries: 5
1418
volumes:
15-
postgres15: {}
19+
postgres17: {}

0 commit comments

Comments
 (0)