mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
* add missing dependencies to be able to use docker without these dependencies, the `docker-compose up` command is failing - `rrdtool-dev` and `librrd` when building `rrdtool-0.1.15.tar.gz` - `make` and `file` when building `gevent-1.5.0.tar.gz` * disable secure cookies for being able to login when docker is used with runserver (there is no ssl) * run develop command to avoid a hard failure after login when using the docker image (version check is performed but pkg_resources is not able to find modoboa distribution) * polish multi stage docker build (adding missing dependencies for pip install and when running the application); use a virtual environment which is shared between the stages by using a base image and others will extend this
19 lines
429 B
YAML
19 lines
429 B
YAML
version: '3'
|
|
|
|
services:
|
|
web:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.dev
|
|
expose:
|
|
- "8000"
|
|
ports:
|
|
- "8000:8000"
|
|
environment:
|
|
PYTHONPATH: ".."
|
|
DB: "SQLITE"
|
|
DEBUG: "True"
|
|
command: sh -c "python3 setup.py develop && cd test_project && python3 manage.py migrate && python3 manage.py load_initial_data && python3 manage.py runserver 0:8000"
|
|
volumes:
|
|
- .:/code
|