I’d like to deploy two websites from single github private repo.
One website is the admin panel
and another website is the main
application.
Both are subfolders inside the repo
private-repo/
|__ admin/
|__ main/
how many .yml
files would I need and where?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Enter your email to get $200 in credit for your first 60 days with DigitalOcean.
New accounts only. By submitting your email you agree to our Privacy Policy.
Hi there,
You are referring to the DigitalOcean App Platform correct?
If so, then the answer is yes, it’s possible to deploy multiple websites from a single GitHub private repo on DigitalOcean’s App Platform. Each application (or service) in the DigitalOcean App Platform is defined in the
do-app.yaml
manifest file.You would need a single
do-app.yaml
file as you can define multiple services within a single manifest file. Each service represents one of your websites.You will have to specify the
source_dir
for each of the projects to correspond to the correct location.Here is a quick example:
You can also find the documentation for all of the available app specs here:
That way both of the sites will be deployed in separate components but under one app.
Let me know if you have any questions!
Best,
Bobby