Fix docker db
This commit is contained in:
parent
2470241f57
commit
9315628adc
3 changed files with 4 additions and 4 deletions
|
@ -1,9 +1,9 @@
|
|||
FROM python:3.8.5-alpine3.12
|
||||
FROM python:3.8.10-alpine3.13
|
||||
|
||||
RUN mkdir code
|
||||
WORKDIR code
|
||||
|
||||
RUN apk add --no-cache gcc musl-dev linux-headers mariadb-dev
|
||||
RUN apk add --no-cache gcc musl-dev linux-headers vim bash
|
||||
|
||||
|
||||
COPY requirements.txt requirements.txt
|
||||
|
|
|
@ -7,7 +7,7 @@ services:
|
|||
env_file: "web.env"
|
||||
restart: on-failure
|
||||
volumes:
|
||||
- mordor_db:/db.sqlite3
|
||||
- mordor_db:/code/db
|
||||
- /var/www/mordor/static:/static
|
||||
command: >
|
||||
sh -c "python manage.py collectstatic --no-input
|
||||
|
|
|
@ -79,7 +79,7 @@ WSGI_APPLICATION = "mordor.wsgi.application"
|
|||
DATABASES = {
|
||||
"default": {
|
||||
"ENGINE": "django.db.backends.sqlite3",
|
||||
"NAME": BASE_DIR / "db.sqlite3",
|
||||
"NAME": BASE_DIR / "db" / "db.sqlite3",
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue