изменид README.md
This commit is contained in:
parent
20aadb5eb8
commit
f2b25f6f30
11
CineSync/Dockerfile
Normal file
11
CineSync/Dockerfile
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
FROM python:3.11
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
RUN python manage.py collectstatic --noinput
|
||||||
|
|
||||||
|
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "CineSync.wsgi:application"]
|
||||||
27
docker-compose.yml
Normal file
27
docker-compose.yml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
version: '3.8'
|
||||||
|
|
||||||
|
services:
|
||||||
|
web:
|
||||||
|
build: .
|
||||||
|
container_name: django_app
|
||||||
|
command: gunicorn --bind 0.0.0.0:8000 CineSync.wsgi:application
|
||||||
|
volumes:
|
||||||
|
- .:/app
|
||||||
|
- ./db.sqlite3:/app/db.sqlite3
|
||||||
|
- ./static:/app/static
|
||||||
|
ports:
|
||||||
|
- "8000:8000"
|
||||||
|
environment:
|
||||||
|
- SECRET_KEY=your_secret_key
|
||||||
|
- DJANGO_DEBUG=True
|
||||||
|
- DJANGO_ALLOWED_HOSTS=*
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
deploy:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 512M
|
||||||
|
cpus: "0.5"
|
||||||
|
reservations:
|
||||||
|
memory: 128M
|
||||||
|
cpus: "0.2"
|
||||||
Loading…
x
Reference in New Issue
Block a user