docker compose
This commit is contained in:
parent
81a1886ccc
commit
8c9e27662e
@ -18,10 +18,10 @@ COPY requirements.txt /app/
|
|||||||
RUN pip install --upgrade pip && pip install -r requirements.txt
|
RUN pip install --upgrade pip && pip install -r requirements.txt
|
||||||
|
|
||||||
# Copy project
|
# Copy project
|
||||||
COPY /freekake_api/ /app/
|
COPY . /app/
|
||||||
|
|
||||||
# Run migrations & collect static in production (optional)
|
# Run migrations & collect static in production (optional)
|
||||||
# CMD ["python", "manage.py", "migrate"] && ["python", "manage.py", "collectstatic", "--noinput"]
|
# CMD ["python", "manage.py", "migrate"] && ["python", "manage.py", "collectstatic", "--noinput"]
|
||||||
|
|
||||||
# Command to run the server
|
# Command to run the server
|
||||||
# CMD ["gunicorn", "freekake_api.wsgi:application", "--bind", "0.0.0.0:8000"]
|
CMD ["gunicorn", "freekake_api.wsgi:application", "--bind", "0.0.0.0:8000"]
|
||||||
|
|||||||
@ -5,7 +5,7 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: ./Dockerfile
|
dockerfile: ./Dockerfile
|
||||||
# command: gunicorn freekake_api.wsgi:application --bind 0.0.0.0:8000
|
# command: gunicorn freekake_api.wsgi:application --bind 0.0.0.0:8000
|
||||||
command: sh -c "gunicorn freekake_api.wsgi:application --bind 0.0.0.0:8000"
|
# command: sh -c "gunicorn freekake_api.wsgi:application --bind 0.0.0.0:8000"
|
||||||
volumes:
|
volumes:
|
||||||
- .:/app
|
- .:/app
|
||||||
- static_volume:/app/static
|
- static_volume:/app/static
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user