Questions:
- Why is it essential to use different repositories for Git and Docker for each service?
- How do your services receive credentials for the database and JWT?
- How can you run multiple Vapor applications at once?
- Advanced: Push your Docker image into your Docker repository.
Answers:
- We need to ensure the integrity of our services. Combining repositories can be dangerous as it invites code to get mixed.
- Through environment variables.
- By defining different ports for each service.
- See Chapter 15, Deploying Microservices in the Cloud, for an example.