fix: give postgres volume a name
All checks were successful
Deploy Miniplan / build (push) Successful in 16s
All checks were successful
Deploy Miniplan / build (push) Successful in 16s
This commit is contained in:
parent
9eecde7a80
commit
06fba58f37
@ -3,6 +3,9 @@ name: miniplan
|
|||||||
networks:
|
networks:
|
||||||
backend:
|
backend:
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
postgres:
|
||||||
|
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: postgres:16
|
image: postgres:16
|
||||||
@ -13,6 +16,8 @@ services:
|
|||||||
- POSTGRES_DB=minis
|
- POSTGRES_DB=minis
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
|
volumes:
|
||||||
|
- postgres:/var/lib/postgresql/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready", "-d", "db_prod"]
|
test: ["CMD-SHELL", "pg_isready", "-d", "db_prod"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user