diff --git a/Acornfile b/Acornfile index 54585c2..895c70c 100644 --- a/Acornfile +++ b/Acornfile @@ -85,21 +85,23 @@ localData: probeExecCommand: [ localData: info: """ ## Usage +```aml services: db: { external: "@{acorn.name}" } containers: app: { - image: "app-image" + image: "app-image" consumes: ["db"] env: { - DB_HOST: "@{@{service.}db.address}" - DB_PORT: "@{@{service.}db.port.3306}" - DB_NAME: "@{@{service.}db.data.dbName}" - DB_ADMIN_USER: "@{@{service.}db.secrets.admin.username}" - DB_ADMIN_PASS: "@{@{service.}db.secrets.admin.password}" - DB_USER: "@{@{service.}db.secrets.user.username}" - DB_PASS: "@{@{service.}db.secrets.user.password}" + DB_HOST: "@{@{service.}db.address}" + DB_PORT: "@{@{service.}db.port.3306}" + DB_NAME: "@{@{service.}db.data.dbName}" + DB_ADMIN_USER: "@{@{service.}db.secrets.admin.username}" + DB_ADMIN_PASS: "@{@{service.}db.secrets.admin.password}" + DB_USER: "@{@{service.}db.secrets.user.username}" + DB_PASS: "@{@{service.}db.secrets.user.password}" } } +``` """