Skip to content

Instantly share code, notes, and snippets.

@betaflag
Last active January 10, 2019 16:35
Show Gist options
  • Save betaflag/f93b71480bb8371a0af7e6e74782629c to your computer and use it in GitHub Desktop.
Save betaflag/f93b71480bb8371a0af7e6e74782629c to your computer and use it in GitHub Desktop.
An example of a NodeJS app running on port 4000 along with postgres in to separate containers with Docker Compose.
version: "3"
services:
app:
build: .
environment:
NODE_ENV: development
ports:
- "4000:4000"
depends_on:
- postgres
volumes:
- ./:/usr/src/app
postgres:
image: postgres:11.1-alpine
environment:
POSTGRES_DB: betaflag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment