Skip to content
This repository has been archived by the owner on May 1, 2023. It is now read-only.

Commit

Permalink
Added Docker deployment documentation in README.md (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lerentis authored and lunny committed Jun 28, 2017
1 parent 810f2a6 commit b9ca1a6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,23 @@ make clean build
bin/lgtm -h
```

### Docker

A Docker Image is available for easy deployment. It can be run locally or on a dedicated Server as follows:

```
docker run --name lgtm -v /my/host/path:/var/lib/lgtm:z -e GITHUB_CLIENT= -e GITHUB_SECRET= -p 8000:8000 gitea/lgtm
```

To Fill the Environment Variables `GITHUB_CLIENT` and `GITHUB_SECRET`, create new OAuth Application [here](https://github.com/settings/applications/new)

* Homepage URL = protocol://host:port (f.e. http://localhost:8000)
* Authorization callback URL = protocol://host:port/login (f.e. http://localhost:8000/login)


To Build the Image by yourself please refere to the [Dockerfile](https://github.com/go-gitea/lgtm/blob/master/Dockerfile) and the [Drone Configuration](https://github.com/go-gitea/lgtm/blob/master/.drone.yml).


## Contributing

Fork -> Patch -> Push -> Pull Request
Expand Down

0 comments on commit b9ca1a6

Please sign in to comment.