forked from coop-cloud/federatedwiki
Compare commits
29 Commits
139f829935
...
e90183f153
Author | SHA1 | Date |
---|---|---|
3wc | e90183f153 | |
3wc | 03cdb435dd | |
3wc | 33a740929d | |
3wc | 98ef8f18d3 | |
3wc | b28d08551e | |
3wc | 7e15af4875 | |
3wc | b0a737d69e | |
3wc | 45d76b05f6 | |
3wc | 6804752d3b | |
3wc | fc95658dba | |
Robert Best | a1cdd385b4 | |
Robert Best | 5ecc26589b | |
Robert Best | c58712f63f | |
Robert Best | 9ba3d0bc3f | |
Robert Best | 6e8c37c2a6 | |
Robert Best | c60645a61d | |
Robert Best | cfee2399cf | |
Robert Best | f19a20f880 | |
3wc | 0633d72d7d | |
3wc | 0e24c78541 | |
3wc | 32559a5aea | |
3wc | efebc41519 | |
3wc | 0a21e11116 | |
3wc | 8454597fca | |
3wc | caa7b8a02e | |
3wc | 3b6879415f | |
3wc | 777cb6263e | |
3wc | 23c2238460 | |
3wc | 07e57c5022 |
|
@ -0,0 +1,41 @@
|
|||
---
|
||||
kind: pipeline
|
||||
name: deploy to swarm-test.autonomic.zone
|
||||
steps:
|
||||
- name: deployment
|
||||
image: git.coopcloud.tech/coop-cloud/stack-ssh-deploy:latest
|
||||
settings:
|
||||
host: swarm-test.autonomic.zone
|
||||
stack: federatedwiki
|
||||
generate_secrets: true
|
||||
purge: true
|
||||
deploy_key:
|
||||
from_secret: drone_ssh_swarm_test
|
||||
networks:
|
||||
- proxy
|
||||
environment:
|
||||
DOMAIN: federatedwiki.swarm-test.autonomic.zone
|
||||
STACK_NAME: federatedwiki
|
||||
LETS_ENCRYPT_ENV: production
|
||||
INSTALL_SH_VERSION: v1
|
||||
CONFIG_JSON_VERSION: v1
|
||||
CONFIG_OWNER_JSON_VERSION: v1
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
---
|
||||
kind: pipeline
|
||||
name: generate recipe catalogue
|
||||
steps:
|
||||
- name: release a new version
|
||||
image: plugins/downstream
|
||||
settings:
|
||||
server: https://build.coopcloud.tech
|
||||
token:
|
||||
from_secret: drone_abra-bot_token
|
||||
fork: true
|
||||
repositories:
|
||||
- coop-cloud/auto-recipes-catalogue-json
|
||||
|
||||
trigger:
|
||||
event: tag
|
13
.env.sample
13
.env.sample
|
@ -5,8 +5,19 @@ DOMAIN=federatedwiki.example.com
|
|||
#EXTRA_DOMAINS=', `www.federatedwiki.example.com`'
|
||||
LETS_ENCRYPT_ENV=production
|
||||
|
||||
COMPOSE_FILE="compose.yml"
|
||||
|
||||
# Change to an absolute path to use a bind-mount, e.g. /opt/fedwiki
|
||||
FEDWIKI_VOLUME="fedwiki"
|
||||
|
||||
# custom wiki.cafe image, for working oauth2 support
|
||||
#COMPOSE_FILE="$COMPOSE_FILE:compose.wikicafe.yml"
|
||||
|
||||
# Predefined "owner" security
|
||||
#COMPOSE_FILE="compose.yml:compose.owner.yml"
|
||||
#COMPOSE_FILE="$COMPOSE_FILE:compose.owner.yml"
|
||||
|
||||
# persistent lib volume / node_modules directory, e.g. for plugmatic
|
||||
#COMPOSE_FILE="$COMPOSE_FILE:compose.lib.yml"
|
||||
|
||||
COOKIE_SECRET="asflkjqpweoriuwpeogdjgbpdofigh"
|
||||
AUTHOR="Baja Colorado"
|
||||
|
|
|
@ -18,9 +18,9 @@ Share pages circulating within a creative commons
|
|||
1. Set up Docker Swarm and [`abra`]
|
||||
2. Deploy [`coop-cloud/traefik`]
|
||||
3. `abra app new federatedwiki`
|
||||
4. `abra app YOURAPPDOMAIN config` - be sure to change `DOMAIN` to something that resolves to
|
||||
4. `abra app config YOURAPPDOMAIN` - be sure to change `DOMAIN` to something that resolves to
|
||||
your Docker swarm box
|
||||
5. `abra app YOURAPPDOMAIN deploy`
|
||||
5. `abra app deploy YOURAPPDOMAIN`
|
||||
|
||||
[`abra`]: https://git.autonomic.zone/autonomic-cooperative/abra
|
||||
[`coop-cloud/traefik`]: https://git.autonomic.zone/coop-cloud/traefik
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
volumes:
|
||||
- "fedwiki_lib:/home/node/lib"
|
||||
|
||||
volumes:
|
||||
fedwiki_lib:
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
image: git.coopcloud.tech/wiki-cafe/wiki-farm:latest
|
11
compose.yml
11
compose.yml
|
@ -3,11 +3,11 @@ version: "3.8"
|
|||
|
||||
services:
|
||||
app:
|
||||
image: dobbs/farm:1.0.13
|
||||
image: dobbs/farm:1.0.18
|
||||
command: /bin/sh config/install.sh
|
||||
volumes:
|
||||
- "fedwiki_friends:/home/node/config"
|
||||
- "fedwiki:/home/node/.wiki"
|
||||
- "${FEDWIKI_VOLUME}:/home/node/.wiki"
|
||||
networks:
|
||||
- proxy
|
||||
configs:
|
||||
|
@ -32,7 +32,12 @@ services:
|
|||
- "traefik.http.routers.${STACK_NAME}.tls.domains[0].main=${DOMAIN}"
|
||||
- "traefik.http.routers.${STACK_NAME}.tls.domains[0].sans=*.${DOMAIN}"
|
||||
- "traefik.http.routers.${STACK_NAME}.priority=1"
|
||||
- "coop-cloud.${STACK_NAME}.version=0.1.0+1.0.13"
|
||||
- "caddy=https://${DOMAIN}, https://*.${DOMAIN}, https://*.*.${DOMAIN}, https://*.*.*.${DOMAIN}"
|
||||
- "caddy.reverse_proxy={{upstreams 3000}}"
|
||||
- "caddy.tls.on_demand="
|
||||
- "backupbot.backup=true"
|
||||
- "backupbot.backup.path=/home/node/.wiki"
|
||||
- "coop-cloud.${STACK_NAME}.version=1.0.1+1.0.18"
|
||||
# healthcheck:
|
||||
# test: ["CMD", "curl", "-f", "http://localhost"]
|
||||
# interval: 30s
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
WARNING! 🚨
|
||||
|
||||
There is a new mandatory config option, FEDWIKI_VOLUME -- please copy the
|
||||
default value from the recipe .env.sample to your .env file on upgrade.
|
||||
|
||||
If you haven't done that yet, best to bail with Ctrl+C, then add the option,
|
||||
then re-run this `abra app upgrade ...` command
|
Loading…
Reference in New Issue