diff --git a/Dockerfile b/Dockerfile index e6415e0..5e20496 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,4 +11,3 @@ RUN pip3 install -r requirements.txt COPY . /app/ -RUN ["python", "manage.py", "runserver", "0.0.0.0:8000"] \ No newline at end of file diff --git a/data/db/global/pg_control b/data/db/global/pg_control index 1e25126..94f8a82 100644 Binary files a/data/db/global/pg_control and b/data/db/global/pg_control differ diff --git a/data/db/pg_stat/db_13395.stat b/data/db/pg_stat/db_13395.stat deleted file mode 100644 index ea27016..0000000 Binary files a/data/db/pg_stat/db_13395.stat and /dev/null differ diff --git a/data/db/pg_stat/global.stat b/data/db/pg_stat/global.stat deleted file mode 100644 index 1aca584..0000000 Binary files a/data/db/pg_stat/global.stat and /dev/null differ diff --git a/data/db/pg_stat/db_0.stat b/data/db/pg_stat_tmp/db_0.stat similarity index 58% rename from data/db/pg_stat/db_0.stat rename to data/db/pg_stat_tmp/db_0.stat index 314dfa8..5548ce9 100644 Binary files a/data/db/pg_stat/db_0.stat and b/data/db/pg_stat_tmp/db_0.stat differ diff --git a/data/db/pg_stat_tmp/global.stat b/data/db/pg_stat_tmp/global.stat new file mode 100644 index 0000000..f603ef6 Binary files /dev/null and b/data/db/pg_stat_tmp/global.stat differ diff --git a/data/db/pg_wal/000000010000000000000001 b/data/db/pg_wal/000000010000000000000001 index b1729a7..20ba95a 100644 Binary files a/data/db/pg_wal/000000010000000000000001 and b/data/db/pg_wal/000000010000000000000001 differ diff --git a/data/db/postmaster.pid b/data/db/postmaster.pid new file mode 100644 index 0000000..fe8411d --- /dev/null +++ b/data/db/postmaster.pid @@ -0,0 +1,8 @@ +1 +/var/lib/postgresql/data +1616346267 +5432 +/var/run/postgresql +* + 894087 0 +ready diff --git a/evgenApp/settings.py b/evgenApp/settings.py index 584783f..ee09234 100644 --- a/evgenApp/settings.py +++ b/evgenApp/settings.py @@ -103,8 +103,12 @@ WSGI_APPLICATION = 'evgenApp.wsgi.application' DATABASES = { 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), + 'ENGINE': 'django.db.backends.postgresql', + 'NAME': 'postgres', + 'USER': 'postgres', + 'PASSWORD': 'postgres', + 'HOST': 'db', + 'PORT': 5432, } } diff --git a/requirements.txt b/requirements.txt index 34668ec..038d87b 100644 Binary files a/requirements.txt and b/requirements.txt differ