

Your architecture is now done, and every new developer on our project would then be able to bootstrap their whole environment in a couple of minutes, with exact required versions. If we run docker-compose up, it would then start two containers, one for PostGreSQL and one for Node. :/app # which port should be accessible from the outside? expose : - " 3000" # start container once `db` service is up depends_on : - db # `db` and `node` should be able to communicate links : - db

Https ://nodejs.# /docker-compose.yml version : ' 2' services : db : # which image should we retrieve from Docker repository? image : postgres # configure database access based on environment variables environment : - POSTGRES_USER=username - POSTGRES_PASSWORD=password node : image : node:7 working_dir : /app command : " node index.js" # map host project folder to /app container folder volumes :. MASTER_SITES = https :// /esbuild-freebsd-64 /-/:esbuild_binary \
