postgresql - How to setup docker architecture -
i'd have following configuration:
docker containers |||||||||||| |||||||||||| |||||||||||| | | | | | | | | | | | | | | <--> | | <--> | | | | | | | | | | | | | | |||||||||||| |||||||||||| |||||||||||| nginx web server postgres
with following setup:
nginx
- change
nginx.conf
- add appropriate
sites-available
entry - link config
sites-enabled
- change
postgresql
- setup user login , password
web server
- clone repository
- build release version
- run server process
i have couple of questions well:
a) how pass secrets docker api keys, passwords , on?
b) possible clone repo docker or there other way that?
c) how , deploy such applications?
d) setup possible?
this setup common docker. i'd recommend using docker-compose (example) because makes setting drastically easier.
passing in secrets done through environment variables @ docker run time. if have many can store them in env-file.
yes, can clone repo docker container or during docker build. cloning private repo during docker build not feasible (without exposing credentials) it's recommended clone repo before running docker build.
Comments
Post a Comment