Fix docker db

This commit is contained in:
mcbloch 2021-05-17 21:53:34 +02:00
parent 2470241f57
commit 9315628adc
3 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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

View file

@ -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",
}
}