doc: Improve doc
This commit is contained in:
parent
524789f935
commit
9b2eb1626a
1 changed files with 21 additions and 8 deletions
29
README.md
29
README.md
|
@ -10,19 +10,32 @@ Setup Network & Domains
|
|||
|
||||
dokku network:create cicd_net
|
||||
dokku network:set cicd initial-network cicd_net
|
||||
dokku config:set --no-restart cicd DOKKU_LETSENCRYPT_EMAIL=glenux@glenux.net
|
||||
dokku config:set --no-restart cicd DOKKU_LETSENCRYPT_EMAIL=username@example.com
|
||||
|
||||
Setup Storage
|
||||
Setup Database
|
||||
|
||||
dokku postgres:create cicd
|
||||
dokku postgres:link cicd cicd
|
||||
|
||||
Setup Volumes
|
||||
|
||||
dokku storage:mount cicd /home/data/cicd.drone:/data
|
||||
|
||||
Setup Configuration
|
||||
|
||||
dokku config:set cicd DRONE_DATABASE_DRIVER=sqlite3
|
||||
dokku config:set cicd DRONE_DATABASE_DATASOURCE=/data/database.sqlite
|
||||
dokku config:set cicd DRONE_GIT_ALWAYS_AUTH="false"
|
||||
dokku config:set cicd DRONE_RPC_SECRET=mFJCcUmWVictjhAug9rXc7bJxV4LsWrjR99jTvrwe9pR3ksK
|
||||
dokku config:set cicd DRONE_SERVER_PROTO=http
|
||||
dokku config:set cicd DRONE_DATABASE_DRIVER=postgres
|
||||
dokku config:set cicd DRONE_GIT_ALWAYS_AUTH=false
|
||||
dokku config:set cicd DRONE_GITEA_SERVER=https://gitea.example.com
|
||||
dokku config:set cicd DRONE_SERVER_HOST=cicd.example.com
|
||||
dokku config:set cicd DRONE_SERVER_PROTO=https
|
||||
dokku config:set cicd DRONE_TLS_AUTOCERT=false
|
||||
dokku config:set cicd DRONE_SERVER_HOST=localhost:3001
|
||||
|
||||
Setup Secrets
|
||||
|
||||
dokku config:set cicd DRONE_COOKIE_SECRET=$(openssl rand -hex 16)
|
||||
dokku config:set cicd DRONE_RPC_SECRET=$(openssl rand -hex 16)
|
||||
dokku config:set cicd DRONE_GITEA_CLIENT_ID=FIXME
|
||||
dokku config:set cicd DRONE_GITEA_CLIENT_SECRET=FIXME
|
||||
|
||||
Deploy
|
||||
|
||||
|
|
Loading…
Reference in a new issue