kopia lustrzana https://github.com/dgtlmoon/changedetection.io
Fix build setup for the docker hub image https://hub.docker.com/r/dgtlmoon/changedetection.io
rodzic
b263773e09
commit
bbccb3181b
13
Dockerfile
13
Dockerfile
|
@ -2,8 +2,17 @@ FROM python:3.8-slim
|
|||
COPY requirements.txt /tmp/requirements.txt
|
||||
RUN pip3 install -r /tmp/requirements.txt
|
||||
|
||||
# So that it can find the certs
|
||||
RUN mkdir /app
|
||||
COPY backend/ /app
|
||||
WORKDIR /app
|
||||
|
||||
CMD [ "python", "/app/backend.py" ]
|
||||
# https://stackoverflow.com/questions/58701233/docker-logs-erroneously-appears-empty-until-container-stops
|
||||
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
RUN [ ! -d "/datastore" ] && mkdir /datastore
|
||||
|
||||
CMD [ "python", "./backend.py" ]
|
||||
|
||||
|
||||
|
||||
|
|
32
README.md
32
README.md
|
@ -11,16 +11,39 @@ some basic information about what those changes were)
|
|||
|
||||

|
||||
|
||||
Get going...
|
||||
Get monitoring! super simple.
|
||||
|
||||
```
|
||||
$ git clone https://github.com/dgtlmoon/changedetection.io.git
|
||||
$ cd changedetection.io
|
||||
$ docker-compose up -d
|
||||
$ mkdir ./datastore
|
||||
$ docker run -d --restart always -p "127.0.0.1:5000:5000" -v "$(pwd)"/datastore:/datastore
|
||||
```
|
||||
|
||||
Now visit http://127.0.0.1:5000 , The interface will now expose the UI, you can change this in the `docker-compose.yml`
|
||||
|
||||
|
||||
|
||||
Or in `docker-compose.yml` style.
|
||||
|
||||
|
||||
```yaml
|
||||
version: "2"
|
||||
services:
|
||||
|
||||
backend:
|
||||
image: dgtlmoon/changedetection.io:latest
|
||||
volumes:
|
||||
- ./datastore:/datastore
|
||||
ports:
|
||||
- "127.0.0.1:5000:5000"
|
||||
restart: always
|
||||
```
|
||||
|
||||
```bash
|
||||
$ mkdir datastore
|
||||
$ docker-compose up -d
|
||||
```
|
||||
|
||||
|
||||
### Future plans
|
||||
|
||||
- Greater configuration of check interval times, page request headers.
|
||||
|
@ -30,3 +53,4 @@ Now visit http://127.0.0.1:5000 , The interface will now expose the UI, you can
|
|||
- Use a graphic/rendered page difference instead of text (see the experimental `selenium-screenshot-diff` branch)
|
||||
|
||||
|
||||
Please :star: star :star: this project and help it grow! https://github.com/dgtlmoon/changedetection.io/
|
|
@ -1,26 +0,0 @@
|
|||
version: "2"
|
||||
services:
|
||||
|
||||
backend:
|
||||
build: .
|
||||
image: dgtlmoon/changedetection.io:0.1
|
||||
|
||||
container_name: changedetection.io
|
||||
volumes:
|
||||
- ./backend:/app
|
||||
- ./datastore:/datastore
|
||||
|
||||
# autoreload not working :(
|
||||
environment:
|
||||
- FLASK_ENV=development
|
||||
- PYTHONUNBUFFERED=1 #https://stackoverflow.com/questions/58701233/docker-logs-erroneously-appears-empty-until-container-stops
|
||||
ports:
|
||||
- "127.0.0.1:5000:5000"
|
||||
|
||||
networks:
|
||||
- changenet
|
||||
|
||||
restart: always
|
||||
|
||||
networks:
|
||||
changenet:
|
Ładowanie…
Reference in New Issue