Skip to content

Instantly share code, notes, and snippets.

@emyller
Last active December 5, 2017 17:56
Show Gist options
  • Save emyller/22995f2b96911ffa24eb4dc13afc6711 to your computer and use it in GitHub Desktop.
Save emyller/22995f2b96911ffa24eb4dc13afc6711 to your computer and use it in GitHub Desktop.
version: '3.3'
services:
app:
build:
dockerfile: config/docker/app.dockerfile
depends_on:
- db-default
- redis
volumes:
- ../../:/app
- /app/node_modules
environment:
DEBUG: 'True'
DATABASE_URL: postgres://postgres@db-default/postgres
REDIS_URL: redis://redis:6379/0
# Development database (default)
db-default:
image: postgres:10-alpine
volumes:
- ../../_data/db-default:/var/lib/postgresql/data
# Development cache
redis:
image: redis:3-alpine
volumes:
- ../../_data/redis:/data
FROM python:3.6-stretch
WORKDIR /app
# Install Node 8.x
RUN \
curl -sL https://deb.nodesource.com/setup_8.x | bash - &&\
apt-get install -y nodejs
# Install Node dependencies
COPY config/node/package.json /app/package.json
RUN npm install
# Install Python dependencies
COPY config/python/requirements.txt /app/requirements.txt
RUN pip install -r requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment