Last active
December 5, 2017 17:56
-
-
Save emyller/22995f2b96911ffa24eb4dc13afc6711 to your computer and use it in GitHub Desktop.
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.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 |
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.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