diff --git a/docker/YeetFile/with-db/compose.override.yml b/docker/YeetFile/with-db/compose.override.yml index 0960441..01e91d2 100644 --- a/docker/YeetFile/with-db/compose.override.yml +++ b/docker/YeetFile/with-db/compose.override.yml @@ -5,7 +5,7 @@ services: YEETFILE_DB_HOST: db depends_on: db: - condition: service_healthy + condition: service_healthy db: image: ${YEETFILEDB_IMAGE}:${YEETFILEDB_TAG} container_name: ${YEETFILEDB_CONTAINER_NAME} @@ -17,8 +17,5 @@ services: POSTGRES_DB: ${YEETFILE_DB_NAME:-yeetfile} expose: - 5432 - healthcheck: - test: [ "CMD-SHELL", "pg_isready -U postgres" ] - interval: 3s networks: - ${YEETFILE_NETWORk_ID} \ No newline at end of file diff --git a/docker/compose/postgres.yaml b/docker/compose/postgres.yaml index 5836207..e3df897 100644 --- a/docker/compose/postgres.yaml +++ b/docker/compose/postgres.yaml @@ -7,4 +7,7 @@ services: volumes: - ${DOCKERDIR}/${COMPOSE_PROJECT_NAME}/db:/var/lib/postgresql/data #ports: - # - "5432:5432" \ No newline at end of file + # - "5432:5432" + healthcheck: + test: [ "CMD-SHELL", "pg_isready -U postgres" ] + interval: 3s \ No newline at end of file