Skip to content

Commit 7d43d72

Browse files
committed
dev
1 parent e66dfff commit 7d43d72

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ WORKDIR /webhook-server
1111

1212
# Install library
1313
RUN pip3 install whatsapp-api-webhook-server-python
14+
RUN apk add curl
1415
# Download example
1516
RUN wget https://raw.githubusercontent.com/green-api/whatsapp-api-webhook-server-python/master/examples/echo.py
1617
# Start server

docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ services:
1414
image: greenapi/whatsapp-api-webhook-server-python:latest
1515
ports:
1616
- "8080:80"
17+
healthcheck:
18+
test: curl -sS http://127.0.0.1:80 || exit 1
19+
interval: 5s
20+
timeout: 10s
21+
retries: 3
1722
networks:
1823
- "webhookserver-net"
1924
logging:

0 commit comments

Comments
 (0)