kopia lustrzana https://github.com/wagtail/docker-wagtail-develop
More setup
rodzic
0a9cb75c02
commit
fa456da724
|
@ -5,15 +5,11 @@ LABEL maintainer="hello@wagtail.io"
|
||||||
# Set environment varibles
|
# Set environment varibles
|
||||||
ENV PYTHONUNBUFFERED 1
|
ENV PYTHONUNBUFFERED 1
|
||||||
|
|
||||||
|
RUN apt-get update -y && apt-get install -y libenchant-dev
|
||||||
|
|
||||||
RUN mkdir -p /code/requirements
|
RUN mkdir -p /code/requirements
|
||||||
COPY ./bakerydemo/requirements/base.txt /code/requirements/base.txt
|
COPY ./bakerydemo/requirements/base.txt /code/requirements/base.txt
|
||||||
COPY ./bakerydemo/requirements/production.txt /code/requirements/production.txt
|
COPY ./bakerydemo/requirements/production.txt /code/requirements/production.txt
|
||||||
|
|
||||||
RUN pip install --upgrade pip
|
RUN pip install --upgrade pip
|
||||||
RUN pip install -r /code/requirements/production.txt
|
RUN pip install -r /code/requirements/production.txt
|
||||||
|
|
||||||
# Install any needed packages specified in requirements.txt
|
|
||||||
# RUN pip install -r /code/requirements.txt
|
|
||||||
RUN pip install gunicorn
|
|
||||||
|
|
||||||
EXPOSE 8000
|
|
||||||
|
|
|
@ -4,7 +4,17 @@ services:
|
||||||
web:
|
web:
|
||||||
build: ./
|
build: ./
|
||||||
working_dir: /code/bakerydemo
|
working_dir: /code/bakerydemo
|
||||||
command: bash -c "python manage.py migrate --noinput && python manage.py load_initial_data && python manage.py update_index && python manage.py runserver 0.0.0.0:8000"
|
command:
|
||||||
|
- /bin/bash
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
cd /code/wagtail
|
||||||
|
pip install -e .[testing,docs]
|
||||||
|
cd /code/bakerydemo
|
||||||
|
python manage.py migrate --noinput
|
||||||
|
python manage.py load_initial_data
|
||||||
|
python manage.py update_index
|
||||||
|
python manage.py runserver 0.0.0.0:8000
|
||||||
volumes:
|
volumes:
|
||||||
- ./wagtail:/code/wagtail:rw
|
- ./wagtail:/code/wagtail:rw
|
||||||
- ./bakerydemo:/code/bakerydemo:rw
|
- ./bakerydemo:/code/bakerydemo:rw
|
||||||
|
@ -12,7 +22,7 @@ services:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
environment:
|
environment:
|
||||||
DATABASE_URL: postgres://wagtail:changeme@postgres/wagtail
|
DATABASE_URL: postgres://wagtail:changeme@postgres/wagtail
|
||||||
PYTHON_PATH: /code/wagtail:/code/bakerydemo
|
PYTHONPATH: /code/wagtail:/code/bakerydemo:$PYTHONPATH
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
db:
|
db:
|
||||||
|
|
Ładowanie…
Reference in New Issue