Daemon/host/role accessories
Allow the hosts for accessories to be specified by host or role, or on
all app hosts by setting `daemon: true`.
```
# Single host
mysql:
host: 1.1.1.1
# Multiple hosts
redis:
hosts:
- 1.1.1.1
- 1.1.1.2
# By role
monitoring:
roles:
- web
- jobs
```
This commit is contained in:
21
README.md
21
README.md
@@ -540,7 +540,8 @@ accessories:
|
||||
memory: "2GB"
|
||||
redis:
|
||||
image: redis:latest
|
||||
host: 1.1.1.4
|
||||
role:
|
||||
- web
|
||||
port: "36379:6379"
|
||||
volumes:
|
||||
- /var/lib/redis:/data
|
||||
@@ -550,6 +551,24 @@ accessories:
|
||||
port: 44444
|
||||
```
|
||||
|
||||
The hosts that the accessories will run on can be specified by host, role or on all app hosts:
|
||||
|
||||
```yaml
|
||||
# Single host
|
||||
mysql:
|
||||
host: 1.1.1.1
|
||||
# Multiple hosts
|
||||
redis:
|
||||
hosts:
|
||||
- 1.1.1.1
|
||||
- 1.1.1.2
|
||||
# By role
|
||||
monitoring:
|
||||
roles:
|
||||
- web
|
||||
- jobs
|
||||
```
|
||||
|
||||
Now run `mrsk accessory start mysql` to start the MySQL server on 1.1.1.3. See `mrsk accessory` for all the commands possible.
|
||||
|
||||
Accessory images must be public or tagged in your private registry.
|
||||
|
||||
Reference in New Issue
Block a user