Skip to content

Instantly share code, notes, and snippets.

@toast38coza
Created March 23, 2017 07:54
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toast38coza/722c3b389f08bca4a696546eda3f83d3 to your computer and use it in GitHub Desktop.
Save toast38coza/722c3b389f08bca4a696546eda3f83d3 to your computer and use it in GitHub Desktop.
version: '3'
services:
web:
command: newrelic-admin run-program gunicorn composeexample.wsgi:application -b :8000 --reload
environment:
- NEW_RELIC_CONFIG_FILE=/code/newrelic.ini
version: '3'
services:
web:
build: .
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/code
ports:
- "8000:8000"
FROM python:3.4
ENV PYTHONUNBUFFERED 1
RUN mkdir -p /code
WORKDIR /code
ADD requirements.txt /code/
RUN pip install -r requirements.txt
ADD . /code/
django==1.10
newrelic
gunicorn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment