Update README and tweak default STACK_DIR

This commit is contained in:
3wc 2020-09-22 16:13:18 +02:00
parent 1d52c0f5ed
commit eec1dcb0b2
2 changed files with 26 additions and 1 deletions

View File

@ -12,6 +12,31 @@ Docker stack magic 🎩🐇
`make dev_install`
## Specify what to deploy where
You can use `abra` in one of 2 ways:
1. Clone a `compose-stack`, create an `.envrc` in it, and run `abra` in that
directory. Be sure to set `ABRA_STACK_DIR=.`
2. "Monorepo mode": keep all your `compose-stack`s in one directory and all your `env` files in
another, e.g.:
```
$ tree
.
├── apps
│   ├── mediawiki.demo.autonomic.zone.env
│   ├── wordpress.demo.autonomic.zone.env
└── stacks
├── gitea
├── matrix-synapse
├── mediawiki
├── nextcloud
├── swarmpit
├── traefik
└── wordpress
$ abra -e apps/mediawiki.demo.autonomic.zone.env deploy
```
## Examples
```

2
abra
View File

@ -92,7 +92,7 @@ if [ -z "$COMPOSE_FILE" ]; then
fi
if [ -z "$ABRA_STACK_DIR" ]; then
ABRA_STACK_DIR="../stacks/$SERVICE"
ABRA_STACK_DIR="stacks/$SERVICE"
fi
###### Safety checks