forked from org1/infra
32 lines
827 B
YAML
32 lines
827 B
YAML
- name: run gogs docker container
|
|
docker:
|
|
name: gogs
|
|
image: gogs/gogs
|
|
detach: True
|
|
restart_policy: always
|
|
net: default
|
|
volumes:
|
|
- "/var/gogs:/data"
|
|
ports:
|
|
- "0.0.0.0:{{ gogs_port }}:3000"
|
|
state: reloaded
|
|
|
|
|
|
- name: oauth config
|
|
blockinfile:
|
|
dest: /var/gogs/gogs/conf/app.ini
|
|
block: |
|
|
[oauth]
|
|
ENABLED = true
|
|
|
|
[oauth.google]
|
|
ENABLED = true
|
|
CLIENT_ID = `259977835489-5lrmult5iimh3f7dik848fb00mn8td2j.apps.googleusercontent.com`
|
|
CLIENT_SECRET = `3xzC51fw-yBeWv63pxYlmYE7`
|
|
SCOPES = `https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile`
|
|
AUTH_URL = `https://accounts.google.com/o/oauth2/auth`
|
|
TOKEN_URL = `https://accounts.google.com/o/oauth2/token`
|
|
|
|
notify: restart gogs docker
|
|
|