File tree 6 files changed +8
-7
lines changed
01_docker_compose/simple_project
6 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ RUN mkdir -p /var/www/static/ \
27
27
&& pip install --upgrade pip \
28
28
&& pip install -r requirements.txt
29
29
30
-
31
30
COPY . .
32
31
33
32
EXPOSE 8000
Original file line number Diff line number Diff line change @@ -4,4 +4,4 @@ DB_PASSWORD=123qwe
4
4
5
5
SECRET_KEY = ' django-insecure-@k04vsjy@qv3m573&94kgq_kjj@lad^^d%hr_o2sk!a6+c3ne9'
6
6
7
- DEBUG = True
7
+ DEBUG = True
Original file line number Diff line number Diff line change 9
9
# Build paths inside the project like this: BASE_DIR / 'subdir'.
10
10
BASE_DIR = Path (__file__ ).resolve ().parent .parent
11
11
12
-
13
12
# Quick-start development settings - unsuitable for production
14
13
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
15
14
92
91
},
93
92
]
94
93
95
-
96
94
# Internationalization
97
95
# https://docs.djangoproject.com/en/4.0/topics/i18n/
98
96
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ uwsgi==2.0.20
3
3
flake8 == 4.0
4
4
python-dotenv == 0.20
5
5
psycopg2 == 2.9.3
6
- django_split_settings == 1.1.0
6
+ django_split_settings == 1.1
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ server {
10
10
root /data;
11
11
12
12
location @backend {
13
- proxy_pass http://service :8000;
13
+ proxy_pass http://django :8000;
14
14
}
15
15
16
16
location ~* \.(?:jpg|jpeg|gif|png|ico|css|js)$ {
@@ -26,6 +26,10 @@ server {
26
26
alias /app/media/;
27
27
}
28
28
29
+ location /admin/ {
30
+
31
+ }
32
+
29
33
location / {
30
34
try_files $uri @backend;
31
35
}
Original file line number Diff line number Diff line change @@ -37,4 +37,4 @@ services:
37
37
- ./data:/data/:ro
38
38
depends_on :
39
39
- django
40
- restart : always
40
+ restart : always
You can’t perform that action at this time.
0 commit comments