2021-07-25 12:45:30 +00:00
# Discourse
2021-07-25 11:52:51 +00:00
2023-10-16 23:18:58 +00:00
Wiki Cafe's configuration for a Discourse deployment. Originally slimmed down from an `abra` [recipe ](https://git.coopcloud.tech/coop-cloud/discourse ) by [Co-op Cloud ](https://coopcloud.tech/ ).
2021-07-25 13:34:54 +00:00
2021-07-25 11:52:51 +00:00
2023-10-16 23:18:58 +00:00
## Deploying the app with Docker Swarm
2021-07-25 11:52:51 +00:00
2023-10-16 23:18:58 +00:00
Set the environment variables from the .env file during the shell session.
2021-07-25 11:52:51 +00:00
2023-10-16 23:18:58 +00:00
```
set -a & & source .env & & set +a
```
2021-07-25 11:52:51 +00:00
2023-10-16 23:18:58 +00:00
Set the secrets.
2021-11-16 19:10:51 +00:00
2023-10-16 23:18:58 +00:00
```
printf "SECRET_HERE" | docker secret create SECRET_NAME -
```
2021-11-16 19:10:51 +00:00
2023-10-16 23:18:58 +00:00
Deploy using the `-c` flag to specify one or multiple compose files.
2021-11-16 19:10:51 +00:00
2023-10-16 23:18:58 +00:00
```
docker stack deploy discourse -c compose.yaml -c compose.smtpauth.yaml
```