mirror of
https://github.com/fergalmoran/onearmy-community-platform.git
synced 2025-12-22 09:37:54 +00:00
chore: add healthcheck for simulated-webhook-receiver (#3702)
* chore: add healthcheck for simulated-webhook-receiver * chore: wait for simulated-webhook-receiver to be healthy before starting backend
This commit is contained in:
@@ -7,6 +7,9 @@ services:
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: ./functions/emulator/Dockerfile
|
||||
depends_on:
|
||||
simulated-webhook-receiver:
|
||||
condition: service_healthy
|
||||
ports:
|
||||
- 4001-4008:4001-4008
|
||||
volumes:
|
||||
|
||||
@@ -17,10 +17,13 @@ WORKDIR /app
|
||||
|
||||
RUN \
|
||||
apt-get update && \
|
||||
apt-get -y install curl && \
|
||||
# For debugging
|
||||
apt-get -y install nano && \
|
||||
apt-get clean
|
||||
|
||||
HEALTHCHECK CMD curl --fail http://localhost:30102/health || exit 1
|
||||
|
||||
COPY ./package.json ./package.json
|
||||
RUN yarn install
|
||||
|
||||
|
||||
Reference in New Issue
Block a user