move healthcheck to container compose file
This commit is contained in:
@@ -17,8 +17,5 @@ services:
|
|||||||
POSTGRES_DB: ${YEETFILE_DB_NAME:-yeetfile}
|
POSTGRES_DB: ${YEETFILE_DB_NAME:-yeetfile}
|
||||||
expose:
|
expose:
|
||||||
- 5432
|
- 5432
|
||||||
healthcheck:
|
|
||||||
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
|
|
||||||
interval: 3s
|
|
||||||
networks:
|
networks:
|
||||||
- ${YEETFILE_NETWORk_ID}
|
- ${YEETFILE_NETWORk_ID}
|
||||||
@@ -8,3 +8,6 @@ services:
|
|||||||
- ${DOCKERDIR}/${COMPOSE_PROJECT_NAME}/db:/var/lib/postgresql/data
|
- ${DOCKERDIR}/${COMPOSE_PROJECT_NAME}/db:/var/lib/postgresql/data
|
||||||
#ports:
|
#ports:
|
||||||
# - "5432:5432"
|
# - "5432:5432"
|
||||||
|
healthcheck:
|
||||||
|
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
|
||||||
|
interval: 3s
|
||||||
Reference in New Issue
Block a user