Skip to content

Commit f7df41f

Browse files
authored
Intial file commit 1
1 parent d446b17 commit f7df41f

6 files changed

+69
-0
lines changed

Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM python:3
2+
ENV PYTHONUNBUFFERED=1
3+
WORKDIR /usr/src/contest
4+
COPY requirement.txt ./
5+
RUN pip install -r requirement.txt

db.sqlite3

508 KB
Binary file not shown.

docker-compose.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
version: "3.7"
2+
3+
services:
4+
django:
5+
build: .
6+
container_name: django
7+
command: python manage.py runserver 0.0.0.0:8000
8+
volumes:
9+
- .:usr/src/app/
10+
ports:
11+
- "8000:8000"
12+
environment:
13+
- DEBUG=1
14+
- DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1
15+
- CELERY_BROKER=redis://redis:6379/0
16+
- CELERY_BACKEND=redis://redis:6379/0
17+
depends_on:
18+
- pgdb
19+
- redis
20+
celery:
21+
built: .
22+
command: celery worker --app=Integrated_Coding --loglevel=info
23+
volumes:
24+
- .:/usr/src/app/
25+
depends_on:
26+
- django
27+
- redis
28+
pgdb:
29+
image: postgres
30+
container_name: pgdb
31+
environment:
32+
- POSTGRES_DB=postgres
33+
- POSTGRES_USER=postgres
34+
- POSTGRES_PASSWORD=postgres
35+
volumes:
36+
- pgdata:/var/lib/postgresql/data/
37+
redis:
38+
image:"redis:alpine"
39+
volumes:
40+
pgdata:
41+
42+

dump.rdb

23.8 KB
Binary file not shown.

manage.py

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env python
2+
"""Django's command-line utility for administrative tasks."""
3+
import os
4+
import sys
5+
6+
7+
def main():
8+
"""Run administrative tasks."""
9+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Integrated_Coding.settings')
10+
try:
11+
from django.core.management import execute_from_command_line
12+
except ImportError as exc:
13+
raise ImportError(
14+
"Couldn't import Django. Are you sure it's installed and "
15+
"available on your PYTHONPATH environment variable? Did you "
16+
"forget to activate a virtual environment?"
17+
) from exc
18+
execute_from_command_line(sys.argv)
19+
20+
21+
if __name__ == '__main__':
22+
main()

requirements.txt

3.29 KB
Binary file not shown.

0 commit comments

Comments
 (0)