Skip to content

Instantly share code, notes, and snippets.

@derianpt
Last active October 10, 2018 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save derianpt/c9fa2b8baf20c1282715a549fc86e8ec to your computer and use it in GitHub Desktop.
Save derianpt/c9fa2b8baf20c1282715a549fc86e8ec to your computer and use it in GitHub Desktop.
compose file
version: "3"
services:
web-server:
build: .
depends_on:
- database
ports:
- "4200:5000"
entrypoint: "tail -f /dev/null"
database:
image: "postgres:alpine"
environment:
POSTGRES_USER: postgres
POSTGRES_DB: mydb
ports:
- "4201:5432"
volumes:
- server_db:/var/lib/postgresql/data
volumes:
server_db:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment