Skip to content

Commit e66dfff

Browse files
committed
Поправить логгирование
1 parent af398c4 commit e66dfff

4 files changed

Lines changed: 3 additions & 11 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ RUN pip3 install whatsapp-api-webhook-server-python
1414
# Download example
1515
RUN wget https://raw.githubusercontent.com/green-api/whatsapp-api-webhook-server-python/master/examples/echo.py
1616
# Start server
17-
CMD [ "python3", "./echo.py" ]
17+
CMD [ "python3","-u","./echo.py" ]

build.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docker build . -t greenapi/whatsapp-api-webhook-server-python

docker-compose.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,6 @@ services:
1414
image: greenapi/whatsapp-api-webhook-server-python:latest
1515
ports:
1616
- "8080:80"
17-
command: python3 ./echo.py
18-
healthcheck:
19-
test: curl -sS http://127.0.0.1:8080 || exit 1
20-
interval: 5s
21-
timeout: 10s
22-
retries: 3
23-
volumes:
24-
- ~/.webhookserver/config/:/usr/src/app/config
25-
- ~/.webhookserver/logs/:/usr/src/app/logs
26-
- ~/.webhookserver/data/:/usr/src/app/data
2717
networks:
2818
- "webhookserver-net"
2919
logging:

publish.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docker push greenapi/whatsapp-api-webhook-server-python:latest

0 commit comments

Comments
 (0)