Skip to content

Instantly share code, notes, and snippets.

@joshfriend
Last active September 23, 2015 01:35
Show Gist options
  • Save joshfriend/99b3db1887ce406c0a47 to your computer and use it in GitHub Desktop.
Save joshfriend/99b3db1887ce406c0a47 to your computer and use it in GitHub Desktop.
api:
restart: always
build: .
volumes:
- ./:/app/
working_dir: /app/
links:
- postgresql:postgresql
- rabbitmq:rabbitmq
expose:
- "5000"
command: make run
postgresql:
restart: always
image: sameersbn/postgresql:9.4-4
environment:
- DB_USER=example
- DB_PASS=example
- DB_NAME=example
volumes_from:
- data
ports:
- "5432:5432"
rabbitmq:
restart: always
image: rabbitmq
volumes_from:
- data
ports:
- "5672:5672"
data:
restart: always
image: postgres
image: rabbitmq
volumes:
- /var/lib/postgresql
- /var/lib/rabbitmq
command: "true"
FROM python:2.7.10
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y --no-install-recommends make git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment