add leaf to docker-compose

This commit is contained in:
2026-03-28 20:44:08 +04:00
parent dafacf2f23
commit 470bc59ffd
2 changed files with 18 additions and 0 deletions

View File

@@ -7,3 +7,12 @@ services:
ports:
- 80:80
restart: always
udp2ws:
image: git.danilkolesnikov.ru/danilko09/udp_over_ws:leaf
build:
context: .
dockerfile: leaf.Dockerfile
ports:
- 5005:5005/udp
restart: always

9
leaf.Dockerfile Normal file
View File

@@ -0,0 +1,9 @@
FROM python:3.8-slim
EXPOSE 5005
WORKDIR /app
RUN pip install --no-cache-dir websockets
COPY leaf.py /app/
STOPSIGNAL SIGINT
ENTRYPOINT ["python", "-u", "leaf.py"]