Open chekkan opened 1 month ago
+1
You can set service
on the accessories, does that work?
# app-a/config/deploy.yml
service: app-a
image: foo/app-a
accessories:
db:
service: shared-mysql
image: mysql:5.7
host: 1.1.1.3
port: 3306
# app-b/config/deploy.yml
service: app-b
image: foo/app-b
accessories:
db:
service: shared-mysql
image: mysql:5.7
host: 1.1.1.3
port: 3306
Is there a way to reuse an accessory, such as mysql, or prometheus across multiple kamal application deployments?
So that I can share a mysql server, or a prometheus server across multiple applications?
At the moment, the docker container name for the accessory has the service's name as its prefix.