2021-03-02 16:38:38 +00:00
# Nextcloud
2020-06-26 23:47:19 +00:00
2023-10-16 23:21:17 +00:00
Wiki Cafe's configuration for a Nextcloud deployment. Originally slimmed down from an `abra` [recipe ](https://git.coopcloud.tech/coop-cloud/nextcloud ) by [Co-op Cloud ](https://coopcloud.tech/ ).
2020-09-27 23:21:14 +00:00
2020-09-08 23:21:30 +00:00
2023-10-16 23:21:17 +00:00
## Deploying the app with Docker Swarm
2021-03-02 16:38:38 +00:00
2023-10-16 23:21:17 +00:00
Set the environment variables from the .env file during the shell session.
2020-09-08 00:38:09 +00:00
2023-03-22 16:47:06 +00:00
```
2023-10-16 23:21:17 +00:00
set -a & & source .env & & set +a
2023-03-22 16:47:06 +00:00
```
2022-03-24 01:17:29 +00:00
2023-10-16 23:21:17 +00:00
Set the secrets.
2021-10-30 15:40:00 +00:00
```
2023-10-16 23:21:17 +00:00
printf "SECRET_HERE" | docker secret create SECRET_NAME -
2021-10-30 15:40:00 +00:00
```
2023-10-16 23:21:17 +00:00
Deploy using the `-c` flag to specify one or multiple compose files.
2021-10-30 15:40:00 +00:00
```
2023-10-16 23:21:17 +00:00
docker stack deploy nextcloud -c compose.yaml -c compose.mariadb.yaml -c compose.smtp.yaml
2021-10-30 15:40:00 +00:00
```