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
```
9 lines
107 B
YAML
9 lines
107 B
YAML
service: app
|
|
image: dhh/app
|
|
servers:
|
|
- "1.1.1.1"
|
|
- "1.1.1.2"
|
|
registry:
|
|
username: user
|
|
password: pw
|