Skip to content

Commit 4d834f9

Browse files
Update postgres to 16
1 parent 0f5a059 commit 4d834f9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docker/docker-compose-prod.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ services:
2121
command: ./gbans serve
2222

2323
postgres:
24-
image: postgis/postgis:15-3.3
24+
build:
25+
context: "."
26+
dockerfile: postgres-ip4r.Dockerfile
2527
restart: always
28+
shm_size: 2gb
2629
volumes:
2730
- gbans_db:/var/lib/postgresql/data
2831
ports:
@@ -33,6 +36,11 @@ services:
3336
POSTGRES_PASSWORD: gbans
3437
networks:
3538
- prod_network
39+
healthcheck:
40+
test: [ "CMD-SHELL", "pg_isready -U gbans" ]
41+
interval: 5s
42+
timeout: 5s
43+
retries: 10
3644

3745
minio:
3846
# Files are currently designed to be served from

0 commit comments

Comments
 (0)