Update doc

This commit is contained in:
Glenn Y. Rolland 2022-08-16 21:57:12 +02:00
parent 2d6220b055
commit d80e13b6fc
2 changed files with 16 additions and 10 deletions

View file

@ -1,16 +1,18 @@
# Usage
Please define the following variables
Please define the following environment variables
GITIT_USER_EMAIL: glenux@glenux.net
GITIT_USER_NAME: Glenn Y. Rolland
GITIT_REMOTE_REPOSITORY: git@github.com/glenux/somewhere
GITIT_REMOTE_DOMAIN: github.com
* GITIT_USER_EMAIL: jon.smith@example.com
* GITIT_USER_NAME: Jon Smith
* GITIT_REMOTE_REPOSITORY: git@example.com/jon.smith/somewhere
* GITIT_REMOTE_DOMAIN: example.com
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
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
# 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

View file

@ -1,5 +1,7 @@
---
version: '3'
services:
wiki:
gitit:
build:
context: .
@ -8,7 +10,9 @@ services:
GIT_COMMITTER_NAME: "Collapse Wiki"
GIT_COMMITTER_EMAIL: "admin@collapse.wiki"
volumes:
- ./wiki:/data
- wiki_data:/data
ports:
- 5001:5001
volumes:
wiki_data: