Created
March 23, 2017 07:54
-
-
Save toast38coza/722c3b389f08bca4a696546eda3f83d3 to your computer and use it in GitHub Desktop.
New Relic setup for a dockerized Django app. http://blog.toast38coza.me/adding-new-relic-to-your-dockerized-django-app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
web: | |
command: newrelic-admin run-program gunicorn composeexample.wsgi:application -b :8000 --reload | |
environment: | |
- NEW_RELIC_CONFIG_FILE=/code/newrelic.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
web: | |
build: . | |
command: python manage.py runserver 0.0.0.0:8000 | |
volumes: | |
- .:/code | |
ports: | |
- "8000:8000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
django==1.10 | |
newrelic | |
gunicorn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment