Compare commits
No commits in common. "2c0852d02c35bffcba1f1cf3fb58cf2297ae4a32" and "20aadb5eb8b3c5226c95240ed68d36bd7ecf5f51" have entirely different histories.
2c0852d02c
...
20aadb5eb8
@ -1,11 +0,0 @@
|
||||
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"]
|
||||
@ -1,32 +0,0 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
web:
|
||||
build: .
|
||||
container_name: django_app
|
||||
command: gunicorn --bind 0.0.0.0:8000 CineSync.wsgi:application
|
||||
volumes:
|
||||
- .:/app
|
||||
- ./static:/app/static
|
||||
- ./media:/app/media
|
||||
ports:
|
||||
- "8000:8000"
|
||||
environment:
|
||||
- DJANGO_SECRET_KEY=${DJANGO_SECRET_KEY}
|
||||
- DJANGO_DEBUG=${DJANGO_DEBUG}
|
||||
- DJANGO_ALLOWED_HOSTS=${DJANGO_ALLOWED_HOSTS}
|
||||
- DJANGO_DB_NAME=${DJANGO_DB_NAME}
|
||||
- DJANGO_DB_USER=${DJANGO_DB_USER}
|
||||
- DJANGO_DB_PASSWORD=${DJANGO_DB_PASSWORD}
|
||||
- DJANGO_DB_HOST=${DJANGO_DB_HOST}
|
||||
- DJANGO_DB_PORT=${DJANGO_DB_PORT}
|
||||
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