From 660e40dd20cc2f64d653dda9e3da42e9b9af4276 Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 13 Jan 2024 19:55:54 +0000 Subject: [PATCH] 7 --- Dockerfile | 2 +- README.md | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1f45ede..fa9e166 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,6 @@ RUN python -m pip install -r requirements.txt WORKDIR /app COPY . /app -ENV CONFIG_FILE_PATH=/app/config.yml +ENV CONFIG_FILE=/app/config.yml CMD ["python", "src/manage.py"] diff --git a/README.md b/README.md index fcf249b..34e8fe5 100644 --- a/README.md +++ b/README.md @@ -7,5 +7,11 @@ This is a helper container for traefik. It can add, remove and update services. DO NOT CHANGE: `/home/config.yml` ```bash -docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v /home/traefik/data/config.tml:/home/config.yml fascinateed/traefik-helper:latest +docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v /home/traefik/data/config.tml:/home/config.yml fascinated/traefik-helper:latest python src/manage.py +``` + +**Example Add** + +```bash +docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v /home/traefik/data/config.tml:/home/config.yml fascinated/traefik-helper:latest python src/manage.py add test test.fascinated.cc http://10.0.0.10 ```