Merge pull request #20 from sw-mschaefer/master

Added documentation for Docker and Docker-Compose & volume definition
pull/27/head
Raphaël Vinot 2018-04-08 18:45:05 +02:00 committed by GitHub
commit c6d02cdae8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 1 deletions

View File

@ -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.

View File

@ -10,4 +10,5 @@ services:
build: .
ports:
- "5000:5000"
#volumes:
# - /path/to/your/data/directory:/lookyloo/scraped