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

Added Docker deployment documentation in README.md #32

Merged
merged 1 commit into from
Jun 28, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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