Skip to content

Instantly share code, notes, and snippets.

@kgadek
Created March 16, 2016 23:38
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 kgadek/6cff023d2e7a6b1d3988 to your computer and use it in GitHub Desktop.
Save kgadek/6cff023d2e7a6b1d3988 to your computer and use it in GitHub Desktop.
pyserver:
restart: "always"
build: ./src
ports:
- 8042:8042
links:
- dbserver:dbserver
env_file: .env
command: python /usr/src/app/server.py
dbserver:
restart: "always"
image: postgres:9.5.0
volumes:
- ./pgdata:/pgdata
env_file: .env
expose:
- 5432
FROM python:2.7.11-onbuild
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment