File tree 4 files changed +7
-13
lines changed
4 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,14 @@ version: '3'
3
3
services :
4
4
db :
5
5
restart : always
6
- image : mdillon/postgis:9.3 -alpine
6
+ image : mdillon/postgis:9.6 -alpine
7
7
volumes :
8
8
- ./pgdata:/var/lib/postgresql/data
9
9
expose :
10
10
- " 5432"
11
11
app :
12
- env_file : .env
12
+ environment :
13
+ DATABASE_URL : postgis://postgres@db:5432/postgres
13
14
build :
14
15
context : .
15
16
dockerfile : ./compose/django/Dockerfile
Original file line number Diff line number Diff line change 1
1
from eatsmart .settings .dev import * # noqa
2
2
3
- # Override settings here
4
- DATABASES = {
5
- 'default' : {
6
- 'ENGINE' : 'django.contrib.gis.db.backends.postgis' ,
7
- 'NAME' : 'postgres' ,
8
- 'USER' : 'postgres' ,
9
- 'HOST' : 'db' ,
10
- 'PORT' : 5432 ,
11
- }
12
- }
3
+ import dj_database_url
4
+
5
+ DATABASES ['default' ].update (dj_database_url .config ())
Original file line number Diff line number Diff line change @@ -15,3 +15,4 @@ BeautifulSoup4==4.4.0
15
15
django-leaflet==0.18.1
16
16
requests==2.2.1
17
17
whitenoise==3.3.0
18
+ dj-database-url==0.4.2
Original file line number Diff line number Diff line change 1
1
-r base.txt
2
2
python3-memcached==1.51
3
- dj-database-url==0.4.2
4
3
gunicorn==19.7.1
You can’t perform that action at this time.
0 commit comments