mirror of https://github.com/CIRCL/lookyloo
Merge pull request #20 from sw-mschaefer/master
Added documentation for Docker and Docker-Compose & volume definitionpull/27/head
commit
c6d02cdae8
22
README.md
22
README.md
|
@ -95,3 +95,25 @@ And you can open ```http://<IP-or-domain>/```
|
|||
|
||||
Now, you should configure [TLS (let's encrypt and so on)](https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04)
|
||||
|
||||
|
||||
|
||||
# Run the app with Docker
|
||||
|
||||
## Dockerfile
|
||||
The repository includes a [Dockerfile](Dockerfile) for building a containerized instance of the app.
|
||||
|
||||
Lookyloo stores the scraped data in /lookyloo/scraped. If you want to persist the scraped data between runs it is sufficient to define a volume for this directory.
|
||||
|
||||
## Running a complete setup with Docker Compose
|
||||
Additionally you can start a complete setup, including the necessary Docker instance of splashy, by using
|
||||
Docker Compose and the included service definition in [docker-compose.yml](docker-compose.yml) by running
|
||||
|
||||
```
|
||||
docker-compose up
|
||||
```
|
||||
|
||||
After building and startup is complete lookyloo should be available at
|
||||
[http://localhost:5000/](http://localhost:5000/)
|
||||
|
||||
If you want to persist the data between different runs uncomment the "volumes" definition in the last two lines of
|
||||
[docker-compose.yml](docker-compose.yml) and define a data storage directory in your Docker host system there.
|
|
@ -10,4 +10,5 @@ services:
|
|||
build: .
|
||||
ports:
|
||||
- "5000:5000"
|
||||
|
||||
#volumes:
|
||||
# - /path/to/your/data/directory:/lookyloo/scraped
|
||||
|
|
Loading…
Reference in New Issue