Test accessory_hosts with roles and without filtering

This commit is contained in:
David Heinemeier Hansson
2024-10-02 17:03:30 -07:00
parent 4f7ebd73a3
commit 7be2e7e0ba
3 changed files with 51 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ builder:
accessories:
mysql:
image: mysql:5.7
host: 1.1.1.3
host: 1.1.1.5
port: 3306
env:
clear:

View File

@@ -0,0 +1,29 @@
service: app
image: dhh/app
servers:
web:
- "1.1.1.1"
- "1.1.1.2"
workers:
- "1.1.1.3"
- "1.1.1.4"
registry:
username: user
password: pw
builder:
arch: amd64
accessories:
mysql:
image: mysql:5.7
host: 1.1.1.5
port: 3306
env:
clear:
MYSQL_ROOT_HOST: '%'
secret:
- MYSQL_ROOT_PASSWORD
files:
- test/fixtures/files/my.cnf:/etc/mysql/my.cnf
directories:
- data:/var/lib/mysql