Add Web UI
This commit is contained in:
@@ -21,3 +21,23 @@ services:
|
||||
|
||||
volumes:
|
||||
- ${DATA_VOLUME}:/config
|
||||
|
||||
cloudflare-ddns-ui:
|
||||
image: python:3.12-slim
|
||||
container_name: cloudflare-ddns-ui
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- CF_API_TOKEN=${CF_API_TOKEN}
|
||||
- CF_ZONE=${CF_ZONE}
|
||||
- CF_SUBDOMAINS=${CF_SUBDOMAIN}
|
||||
- REFRESH_SECONDS=${UI_REFRESH_SECONDS}
|
||||
volumes:
|
||||
- ./ui:/app
|
||||
working_dir: /app
|
||||
command: >
|
||||
sh -c "pip install --no-cache-dir flask requests &&
|
||||
python app.py"
|
||||
ports:
|
||||
- "${UI_PORT}:8080"
|
||||
|
||||
Reference in New Issue
Block a user