Update Docker instructions

This commit is contained in:
TwinProduction 2020-09-17 23:48:09 -04:00
parent faf478be99
commit a6a8cca427

View File

@ -259,10 +259,17 @@ services:
## Docker ## Docker
Other than using one of the examples provided in the `examples` folder, you can also try it out locally by
creating a configuration file - we'll call it `config.yaml` for this example - and running the following
command:
``` ```
docker run -p 8080:8080 --name gatus twinproduction/gatus docker run -p 8080:8080 --mount type=bind,source="$(pwd)"/test.yaml,target=/config/config.yaml --name gatus twinproduction/gatus
``` ```
If you're on Windows, replace `"$(pwd)"` by the absolute path to your current directory, e.g.:
```
docker run -p 8080:8080 --mount type=bind,source=E:/Go/src/github.com/TwinProduction/gatus/test.yaml,target=/config/config.yaml --name gatus twinproduction/gatus
```
## Running the tests ## Running the tests