File tree Expand file tree Collapse file tree 4 files changed +77
-9
lines changed Expand file tree Collapse file tree 4 files changed +77
-9
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ Dockerfile
1313env /
1414venv /
1515
16+ cache /
1617logs /
1718public /
1819docker-compose.yml
Original file line number Diff line number Diff line change @@ -58,17 +58,12 @@ staticfiles
5858# virtual environments
5959.env
6060env /
61+ venv /
6162db.sqlite3
6263
63- # User-uploaded media
64- lms /media /
65-
6664# Hitch directory
6765tests /.hitch
6866
69- # Docker Compose
70- /docker-compose.yml
71-
7267# sunucudaki static ve medya ve dosyalarının konumu
7368/public /*
7469
@@ -81,3 +76,4 @@ celerybeat.pid
8176# IDE Settings
8277.vscode /
8378.idea /
79+ cache /
Original file line number Diff line number Diff line change @@ -13,9 +13,15 @@ cache:
1313language : python
1414
1515python :
16- - " 3.6"
16+ - " 3.8"
17+ - " 3.9"
18+ - " 3.10"
19+ - " 3.11"
20+ - " 3.12"
1721install :
1822 - pip install -r requirements.txt
1923script :
20- - cp -rf sample.env .env
21- - python manage.py reseter && python manage.py makemigrations && python manage.py migrate && python manage.py load_new
24+ - cp sample.env .env
25+ - python manage.py migrate
26+ - python manage.py load_new
27+ - python manage.py runserver 0.0.0.0:8000
Original file line number Diff line number Diff line change 1+ version : ' 3.7'
2+
3+ services :
4+ web :
5+ image : tarekaec/django_aio:1.0
6+ ports :
7+ - " 8000:8000"
8+ deploy :
9+ replicas : 1
10+ update_config :
11+ order : start-first
12+ # entrypoint: bash ./entrypoint.sh
13+ env_file :
14+ - .env
15+ environment :
16+ DEBUG : ' 1'
17+ DJANGO_SETTINGS_MODULE : config.settings.pro
18+ ALLOWED_HOSTS : ' 127.0.0.1,127.0.0.11'
19+ PRODB_URL :
postgres://jasmin:[email protected] :5432/jasmin 20+ REDIS_URI : redis://redis:6379/1
21+ TELNET_HOST : jasmin
22+ SUBMIT_LOG : 1
23+ volumes :
24+ - web_public:/app/public
25+ - web_logs:/app/logs
26+ depends_on :
27+ - redis
28+ celery :
29+ image : tarekaec/django_aio:1.0
30+ entrypoint : bash ./entrypoint-celery.sh
31+ deploy :
32+ replicas : 1
33+ env_file :
34+ - .env
35+ environment :
36+ DEBUG : 0
37+ PRODB_URL :
postgres://jasmin:[email protected] :5432/jasmin 38+ DJANGO_SETTINGS_MODULE : config.settings.pro
39+ CELERY_BROKER_URL : redis://redis:6379/0
40+ CELERY_RESULT_BACKEND : redis://redis:6379/0
41+ CELERY_LOG_LEVEL : info
42+ healthcheck :
43+ disable : true
44+ depends_on :
45+ - redis
46+ redis :
47+ image : redis:alpine
48+ tty : true
49+ volumes :
50+ - redis_data:/data
51+ command :
52+ - ' redis-server'
53+ - ' --appendonly yes'
54+ - ' --save 60 1'
55+ environment :
56+ REDIS_REPLICATION_MODE : master
57+ ALLOW_EMPTY_PASSWORD : " yes"
58+
59+ volumes :
60+ redis_data :
61+ driver : local
62+ web_public :
63+ driver : local
64+ web_logs :
65+ driver : local
You can’t perform that action at this time.
0 commit comments