Skip to content

Commit 023486b

Browse files
committedJun 24, 2022
initial commit
1 parent ae65c64 commit 023486b

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed
 

‎01_docker_compose/simple_project/app/Dockerfile

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ RUN mkdir -p /var/www/static/ \
2727
&& pip install --upgrade pip \
2828
&& pip install -r requirements.txt
2929

30-
3130
COPY . .
3231

3332
EXPOSE 8000

‎01_docker_compose/simple_project/app/example/.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ DB_PASSWORD=123qwe
44

55
SECRET_KEY = 'django-insecure-@k04vsjy@qv3m573&94kgq_kjj@lad^^d%hr_o2sk!a6+c3ne9'
66

7-
DEBUG = True
7+
DEBUG = True

‎01_docker_compose/simple_project/app/example/settings.py

-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
# Build paths inside the project like this: BASE_DIR / 'subdir'.
1010
BASE_DIR = Path(__file__).resolve().parent.parent
1111

12-
1312
# Quick-start development settings - unsuitable for production
1413
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
1514

@@ -92,7 +91,6 @@
9291
},
9392
]
9493

95-
9694
# Internationalization
9795
# https://docs.djangoproject.com/en/4.0/topics/i18n/
9896

‎01_docker_compose/simple_project/app/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ uwsgi==2.0.20
33
flake8==4.0
44
python-dotenv==0.20
55
psycopg2==2.9.3
6-
django_split_settings==1.1.0
6+
django_split_settings==1.1

‎01_docker_compose/simple_project/configs/site.conf

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ server {
1010
root /data;
1111

1212
location @backend {
13-
proxy_pass http://service:8000;
13+
proxy_pass http://django:8000;
1414
}
1515

1616
location ~* \.(?:jpg|jpeg|gif|png|ico|css|js)$ {
@@ -26,6 +26,10 @@ server {
2626
alias /app/media/;
2727
}
2828

29+
location /admin/ {
30+
31+
}
32+
2933
location / {
3034
try_files $uri @backend;
3135
}

‎01_docker_compose/simple_project/docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ services:
3737
- ./data:/data/:ro
3838
depends_on:
3939
- django
40-
restart: always
40+
restart: always

0 commit comments

Comments
 (0)
Please sign in to comment.