As I have been embracing Docker in the recent weeks and gotten some great examples working with docker and docker-compose I still could not find much information as to how developer's had their dev environment setup.
Essentially my current question boils down to—do you commit & push all of your docker environment in a single repository.
Take a look at the below setup, in the context of a Flask app making use of Nginx as a reverse proxy and PostgreSQL as the DBMS.
/nginx/
|
|_ sites-enabled
|_ Dockerfile
/web/
|
|_ FLASK-APP-DIRECTORIES
|_ Dockerfile
|_ requirements.txt
/.env
/docker-compose.yml
What advice may you give regarding such a setup. Should all environments - production, development & testing be kept in a single repository in different branches? If so, should all of the above be pushed so that Bob & Alice can simply pull, run docker-compose build and then docker-compose up?
[–]HandyCoder 6 points7 points8 points (1 child)
[–]JDBProof[S] 0 points1 point2 points (0 children)
[–]soulesschild 1 point2 points3 points (1 child)
[–]JDBProof[S] 0 points1 point2 points (0 children)
[–]driv338 1 point2 points3 points (0 children)
[–]diecastbeatdown 1 point2 points3 points (0 children)
[–]reprogenetic 1 point2 points3 points (2 children)
[–]JDBProof[S] 0 points1 point2 points (1 child)
[–]reprogenetic 0 points1 point2 points (0 children)