Update doc
This commit is contained in:
parent
2d6220b055
commit
d80e13b6fc
2 changed files with 16 additions and 10 deletions
18
README.md
18
README.md
|
@ -1,16 +1,18 @@
|
||||||
|
# Usage
|
||||||
|
|
||||||
Please define the following variables
|
Please define the following environment variables
|
||||||
|
|
||||||
GITIT_USER_EMAIL: glenux@glenux.net
|
* GITIT_USER_EMAIL: jon.smith@example.com
|
||||||
GITIT_USER_NAME: Glenn Y. Rolland
|
* GITIT_USER_NAME: Jon Smith
|
||||||
GITIT_REMOTE_REPOSITORY: git@github.com/glenux/somewhere
|
* GITIT_REMOTE_REPOSITORY: git@example.com/jon.smith/somewhere
|
||||||
GITIT_REMOTE_DOMAIN: github.com
|
* GITIT_REMOTE_DOMAIN: example.com
|
||||||
|
|
||||||
Please mount the following volumes
|
Please mount the following volumes
|
||||||
|
|
||||||
/var/lib/dokku/data/storage/cryptochemists-wiki-prod => /data
|
* /path/to/your/data => /data
|
||||||
|
|
||||||
You can also add a cron task to mirror the wiki on a regular basis
|
It is also strongly advised to run a cron task to mirror the wiki on a regular
|
||||||
|
basis
|
||||||
|
|
||||||
# server cron jobs
|
# server cron jobs
|
||||||
MAILTO="admin@server.com"
|
MAILTO="admin@server.com"
|
||||||
|
@ -34,7 +36,7 @@ You can also add a cron task to mirror the wiki on a regular basis
|
||||||
### PLACE ALL CRON TASKS BELOW
|
### PLACE ALL CRON TASKS BELOW
|
||||||
|
|
||||||
# removes unresponsive users from the subscriber list to decrease bounce rates
|
# removes unresponsive users from the subscriber list to decrease bounce rates
|
||||||
0 * * * * dokku dokku --rm run cryptochemists-wiki-prod sh -c "cd wikidata && git push --set-upstream origin master"
|
0 * * * * docker run --rm thecontainer sh -c "cd wikidata && git push --set-upstream origin master"
|
||||||
|
|
||||||
### PLACE ALL CRON TASKS ABOVE, DO NOT REMOVE THE WHITESPACE AFTER THIS LINE
|
### PLACE ALL CRON TASKS ABOVE, DO NOT REMOVE THE WHITESPACE AFTER THIS LINE
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
|
---
|
||||||
version: '3'
|
version: '3'
|
||||||
services:
|
|
||||||
|
wiki:
|
||||||
gitit:
|
gitit:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
|
@ -8,7 +10,9 @@ services:
|
||||||
GIT_COMMITTER_NAME: "Collapse Wiki"
|
GIT_COMMITTER_NAME: "Collapse Wiki"
|
||||||
GIT_COMMITTER_EMAIL: "admin@collapse.wiki"
|
GIT_COMMITTER_EMAIL: "admin@collapse.wiki"
|
||||||
volumes:
|
volumes:
|
||||||
- ./wiki:/data
|
- wiki_data:/data
|
||||||
ports:
|
ports:
|
||||||
- 5001:5001
|
- 5001:5001
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
wiki_data:
|
||||||
|
|
Loading…
Reference in a new issue