Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added docker-compose file for development.
- Loading branch information
Showing
5 changed files
with
44 additions
and
3 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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,11 @@ | |||
build | |||
dist | |||
frontend/node_modules | |||
modoboa.egg-info | |||
|
|||
.tox | |||
|
|||
**/.python-version | |||
**/__pycache__ | |||
**/*.pyc | |||
**/.ropeproject |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,14 @@ | |||
FROM python:3.6-alpine | |||
|
|||
MAINTAINER Antoine Nguyen <tonio@ngyn.org> | |||
|
|||
RUN apk add --update python3-dev libffi-dev gcc musl-dev libxml2-dev libxslt-dev \ | |||
libressl-dev jpeg-dev \ | |||
&& rm -rf /var/cache/apk/* | |||
|
|||
WORKDIR /tmp | |||
COPY requirements.txt /tmp | |||
RUN pip install -r requirements.txt | |||
|
|||
RUN mkdir /code | |||
WORKDIR /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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,18 @@ | |||
version: '3' | |||
|
|||
services: | |||
web: | |||
build: | |||
context: . | |||
dockerfile: Dockerfile.dev | |||
expose: | |||
- "8000" | |||
ports: | |||
- "8000:8000" | |||
environment: | |||
PYTHONPATH: ".." | |||
DB: "SQLITE" | |||
DEBUG: "True" | |||
command: sh -c "cd test_project && python3 manage.py migrate && python3 manage.py load_initial_data && python3 manage.py runserver 0:8000" | |||
volumes: | |||
- .:/code |
Binary file not shown.
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