From 7aed19decdf6cfea9178162f2a41e54af65ab69e Mon Sep 17 00:00:00 2001 From: Akhil Gupta Date: Wed, 7 Oct 2020 11:02:35 +0530 Subject: [PATCH] added docker compose --- Readme.md | 46 +++++++++++++++++++++++++++++++++++++++++++--- docker-compose.yml | 13 +++++++++++++ 2 files changed, 56 insertions(+), 3 deletions(-) create mode 100644 docker-compose.yml diff --git a/Readme.md b/Readme.md index 15d0a7e..a273ed3 100644 --- a/Readme.md +++ b/Readme.md @@ -61,6 +61,7 @@ * [About the Project](#about-the-project) * [Built With](#built-with) +* [Installation](#installation) * [License](#license) * [Contact](#contact) @@ -68,8 +69,7 @@ ## About The Project -[![Product Name Screen Shot][product-screenshot]](https://example.com) - +![Product Name Screen Shot][product-screenshot] ### Built With @@ -80,6 +80,46 @@ * [SQLite](https://www.sqlite.org/index.html) +## Installation + +The easiest way to run Podgrab is to run it as a container. + +### Using Docker + +Simple setup without mounted volumes (for testing and evaluation) +```sh + docker run -d -p 8080:8080 --name=podgrab akhilrex/podgrab +``` + +Binding local volumes to the container +```sh + docker run -d -p 8080:8080 --name=podgrab -v "/host/path/to/assets:/assets" -v "/host/path/to/config:/config" akhilrex/podgrab +``` + +### Using Docker-Compose + +Modify the docker compose file provided [here]() to update the volume and port binding and run the following command +```yaml +version: "2.1" +services: + podgrab: + image: akhilrex/podgrab + container_name: podgrab + environment: + - CHECK_FREQUENCY=20 + volumes: + - /path/to/config:/config + - /path/to/data:/data + ports: + - 8080:8080 + restart: unless-stopped +``` + +```sh + docker-compose up -d +``` + + ## License @@ -90,7 +130,7 @@ Distributed under the MIT License. See `LICENSE` for more information. ## Contact -Your Name - [@akhilrex](https://twitter.com/akhilrex) - email +Akhil Gupta - [@akhilrex](https://twitter.com/akhilrex) Project Link: [https://github.com/akhilrex/podgrab](https://github.com/akhilrex/podgrab) diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..908a3fd --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,13 @@ +version: "2.1" +services: + podgrab: + image: akhilrex/podgrab + container_name: podgrab + environment: + - CHECK_FREQUENCY=20 + volumes: + - /path/to/config:/config + - /path/to/data:/data + ports: + - 8080:8080 + restart: unless-stopped \ No newline at end of file