[~] Refactor
This commit is contained in:
parent
5077588000
commit
a23df33063
@ -15,11 +15,15 @@ services:
|
||||
volumes:
|
||||
- ./d1/dynu_update.py:/app/d1/dynu_update.py:ro
|
||||
- ./tmp/cache/dynu.auth.json:/app/tmp/cache/dynu.auth.json:ro
|
||||
restart: always
|
||||
links:
|
||||
- ngrok
|
||||
ngrok:
|
||||
image: wernight/ngrok
|
||||
links:
|
||||
- app
|
||||
command: ['ngrok', 'http', 'app:80']
|
||||
restart: always
|
||||
#forward:
|
||||
# build:
|
||||
# context: .
|
||||
|
@ -4,6 +4,9 @@ WORKDIR /app
|
||||
RUN pip3 install requests
|
||||
|
||||
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; \
|
||||
"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user