Fix db to dump

This commit is contained in:
littlewolf 2019-12-02 15:28:39 +03:00
parent c2b6de7322
commit ec8b643c54
3 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,3 @@
FROM mdillon/postgis:9.5
FROM mdillon/postgis:latest
RUN localedef -i ru_RU -c -f UTF-8 -A /usr/share/locale/locale.alias ru_RU.UTF-8
ENV LANG ru_RU.utf8

View File

@ -29,6 +29,7 @@ services:
- "5436:5432"
volumes:
- gm-db:/var/lib/postgresql/data/
- .:/code
elasticsearch:

View File

@ -155,6 +155,9 @@ DATABASES = {
'PASSWORD': os.environ.get('DB_PASSWORD'),
'HOST': os.environ.get('DB_HOSTNAME'),
'PORT': os.environ.get('DB_PORT'),
'OPTIONS': {
'options': '-c search_path=gm'
},
},
}