[~] Refactor

This commit is contained in:
Siarhei Siniak 2021-11-13 13:17:55 +03:00
parent 5077588000
commit a23df33063
2 changed files with 9 additions and 2 deletions

@ -15,11 +15,15 @@ services:
volumes: volumes:
- ./d1/dynu_update.py:/app/d1/dynu_update.py:ro - ./d1/dynu_update.py:/app/d1/dynu_update.py:ro
- ./tmp/cache/dynu.auth.json:/app/tmp/cache/dynu.auth.json:ro - ./tmp/cache/dynu.auth.json:/app/tmp/cache/dynu.auth.json:ro
restart: always
links:
- ngrok
ngrok: ngrok:
image: wernight/ngrok image: wernight/ngrok
links: links:
- app - app
command: ['ngrok', 'http', 'app:80'] command: ['ngrok', 'http', 'app:80']
restart: always
#forward: #forward:
# build: # build:
# context: . # context: .

@ -4,6 +4,9 @@ WORKDIR /app
RUN pip3 install requests RUN pip3 install requests
ENTRYPOINT /bin/sh -c "\ ENTRYPOINT /bin/sh -c "\
python3 d1/dynu_update.py tmp/cache/dynu.auth.json ngrok \ while true; do \
date; \
python3 d1/dynu_update.py tmp/cache/dynu.auth.json ngrok; \
sleep 900; \
done; \
" "