Skip to content

Commit 04e6048

Browse files
committed
README.md updated
1 parent 1b70001 commit 04e6048

File tree

4 files changed

+77
-9
lines changed

4 files changed

+77
-9
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Dockerfile
1313
env/
1414
venv/
1515

16+
cache/
1617
logs/
1718
public/
1819
docker-compose.yml

.gitignore

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,12 @@ staticfiles
5858
# virtual environments
5959
.env
6060
env/
61+
venv/
6162
db.sqlite3
6263

63-
# User-uploaded media
64-
lms/media/
65-
6664
# Hitch directory
6765
tests/.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/

.travis.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,15 @@ cache:
1313
language: python
1414

1515
python:
16-
- "3.6"
16+
- "3.8"
17+
- "3.9"
18+
- "3.10"
19+
- "3.11"
20+
- "3.12"
1721
install:
1822
- pip install -r requirements.txt
1923
script:
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

docker-compose.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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

0 commit comments

Comments
 (0)