Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Project separated into multiple repositories #2152

Answered by g-linville
revosw asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, @revosw. Thank you for your question.

Yes, you can absolutely deploy Acorns from multiple repositories to the same project. In Acorn, you can deploy an RDS instance using our service catalogue. For the sake of this example, I will name it rds.

Then, you can reference it in your Acornfile like this:

containers: nginx: {
	image: "nginx:latest"
	ports: "80/http"
	env: {
		DB_HOST:     "@{service.rds.address}"
		DB_USER:     "@{service.rds.secrets.admin.username}"
		DB_PASSWORD: "@{service.rds.secrets.admin.password}"
		DB_NAME:     "@{service.rds.data.dbName}"
	}
}

services: rds: external: "rds"

The key here is the last line - that is what references the RDS service. The example I gave …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@revosw
Comment options

Answer selected by revosw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants