replace var where fixed name is. Update README.

This commit is contained in:
Christian Galo 2023-10-17 04:17:26 +00:00
parent 10d66575cf
commit d059b04de0
2 changed files with 21 additions and 23 deletions

View File

@ -1,26 +1,24 @@
# Federated Wiki
# Fedwiki
Share pages circulating within a creative commons
Wiki Cafe's configuration for a Nextcloud deployment. Originally slimmed down from an `abra` [recipe](https://git.coopcloud.tech/coop-cloud/federatedwiki) by [Co-op Cloud](https://coopcloud.tech/).
<!-- metadata -->
* **Category**: Apps
* **Status**: 0, work-in-progress
* **Image**: [`dobbs/farm`](https://hub.docker.com/r/dobbs/farm/), 4, upstream
* **Healthcheck**: No
* **Backups**: No
* **Email**: No
* **Tests**: No
* **SSO**: No
<!-- endmetadata -->
## Basic usage
## Deploying the app with Docker Swarm
1. Set up Docker Swarm and [`abra`]
2. Deploy [`coop-cloud/traefik`]
3. `abra app new federatedwiki`
4. `abra app config YOURAPPDOMAIN` - be sure to change `DOMAIN` to something that resolves to
your Docker swarm box
5. `abra app deploy YOURAPPDOMAIN`
Set the environment variables from the .env file during the shell session.
[`abra`]: https://git.autonomic.zone/autonomic-cooperative/abra
[`coop-cloud/traefik`]: https://git.autonomic.zone/coop-cloud/traefik
```
set -a && source .env && set +a
```
Set the secrets.
```
printf "SECRET_HERE" | docker secret create SECRET_NAME -
```
Deploy using the `-c` flag to specify one or multiple compose files.
```
docker stack deploy fedwiki -c compose.yaml -c compose.lib.yaml -c compose.wikicafe.yaml
```

View File

@ -3,7 +3,7 @@ services:
image: dobbs/farm:1.0.20
command: /bin/sh entrypoint.sh
volumes:
- "${FEDWIKI_VOLUME}:/home/node/.wiki"
- "fedwiki_data:/home/node/.wiki"
networks:
- proxy
configs:
@ -47,7 +47,7 @@ process.exit(1); }); request.end();'"
start_period: 30s
volumes:
fedwiki:
fedwiki_data:
networks:
proxy: