I'd like to have the following configuration:
Docker Containers
|||||||||||| |||||||||||| ||||||||||||
| | | | | |
| | | | | |
| | <--> | | <--> | |
| | | | | |
| | | | | |
|||||||||||| |||||||||||| ||||||||||||
nginx web server postgres
With the following setup:
Nginx
- change
nginx.conf
- add an appropriate
sites-available
entry - link config
sites-enabled
- change
PostgreSQL
- setup user login and password
Web Server
- clone from repository
- build release version
- run server process
I have a couple of questions as well:
a) how to pass secrets to Docker like API keys, passwords and so on?
b) is this possible to clone repo from docker or there is other way to do that?
c) how and where deploy such applications?
d) is that setup even possible?