32 lines
673 B
Plaintext
32 lines
673 B
Plaintext
# Wiki Cafe Site
|
|
|
|
This is the source code for https://wiki.cafe.
|
|
|
|
## Reference
|
|
|
|
Serve Hugo site with Docker
|
|
|
|
```
|
|
docker run --rm -v $(pwd):/src -p 1313:1313 hugomods/hugo:base-non-root-0.145.0 server -D
|
|
```
|
|
|
|
## Deploying the app with Docker Swarm
|
|
|
|
Set the environment variables from the .env file during the shell session.
|
|
|
|
```
|
|
set -a && source .env && set +a
|
|
```
|
|
|
|
Set the secrets. (There aren't any secrets in this project, but this is how you would set them.)
|
|
|
|
```
|
|
printf "SECRET_HERE" | docker secret create SECRET_NAME -
|
|
```
|
|
|
|
Deploy using the `-c` flag to specify one or multiple compose files.
|
|
|
|
```
|
|
docker stack deploy wiki-cafe-site --detach=true -c compose.yaml
|
|
```
|