Skip to content

Commit

Permalink
!#5 Add: settings docker and docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
luismayta committed Sep 3, 2017
1 parent 76015a9 commit f099f62
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# slides-docker4devs: Docker Compose
# https://docs.docker.com/compose/
#
# Usage: docker-compose up
version: '3'
services:

app:
hostname: web
ports:
- "80:5000"
restart: always
image: python:3.6.1
build:
context: .
dockerfile: docker/app/Dockerfile
volumes:
- .:/app
env_file:
- .env
4 changes: 4 additions & 0 deletions docker-compose/prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ventorystack: Docker Compose
# https://docs.docker.com/compose/
#
# Usage: docker-compose prod up
4 changes: 4 additions & 0 deletions docker-compose/stage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ventorystack: Docker Compose
# https://docs.docker.com/compose/
#
# Usage: docker-compose stage up
4 changes: 4 additions & 0 deletions docker-compose/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ventorystack: Docker Compose
# https://docs.docker.com/compose/
#
# Usage: test up
12 changes: 12 additions & 0 deletions docker/app/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM python:3.6.1

MAINTAINER Luis Mayta <@slovacus>

COPY ./requirements/ /app/requirements/
COPY ./requirements.txt /app/requirements.txt

# set working directory to /app/
WORKDIR /app/

# install python dependencies
RUN pip install -r /app/requirements.txt

0 comments on commit f099f62

Please sign in to comment.