postgresql - How to setup docker architecture -


i'd have following configuration:

               docker containers     ||||||||||||      ||||||||||||      |||||||||||| |          |      |          |      |          | |          |      |          |      |          | |          | <--> |          | <--> |          | |          |      |          |      |          | |          |      |          |      |          | ||||||||||||      ||||||||||||      ||||||||||||    nginx           web server         postgres 

with following setup:

  1. nginx

    • change nginx.conf
    • add appropriate sites-available entry
    • link config sites-enabled
  2. postgresql

    • setup user login , password
  3. 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

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -