generated from Clivern/Hamster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (41 loc) · 1.15 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
version: '3'
services:
db:
image: "mysql:8.0"
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=hamster
- MYSQL_USER=hamster
- MYSQL_PASSWORD=secret
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
restart: always
healthcheck:
test: '/usr/bin/mysql --user=hamster --password=secret --execute "SHOW DATABASES;"'
interval: 3s
timeout: 1s
retries: 5
web:
image: "clivern_hamster:3.1.0"
build: .
command: './hamster'
ports:
- "8080:8080"
depends_on:
- db
volumes:
- './var:/go/src/github.com/clivern/hamster/var'
restart: always
environment:
- GithubToken=YourTokenHere
- GithubWebhookSecret=YourSecretHere
- RepositoryAuthor=Clivern
- RepositoryName=Hamster
- AppMode=prod
- AppPort=8080
- AppLogLevel=info
- GithubAppClientID=ValueHere
- GithubAppRedirectURI=ValueHere
- GithubAppAllowSignup=true
- GithubAppScope=ValueHere
- GithubAppClientSecret=ValueHere
- AppDomain=example.com