-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
!#5 Add: settings docker and docker-compose
- Loading branch information
Showing
5 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
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
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 |
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
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 |
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
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 |
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
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 |
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
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 |