fixing admin user

This commit is contained in:
2024-08-28 16:23:12 +02:00
parent 415455a881
commit cac711d2f6
3 changed files with 15 additions and 1 deletions

View File

@@ -21,6 +21,8 @@ COPY . /app/
RUN python manage.py collectstatic --noinput --clear
RUN python manage.py migrate --noinput
RUN python manage.py createsuperuser --username admin --email admin@example.com --password mysecretpassword --noinput
EXPOSE 8000

View File

@@ -1 +1 @@
web: gunicorn saburly.wsgi:application --bind 0.0.0.0:8000
web: gunicorn saburly.wsgi:application --bind 0.0.0.0:$PORT

12
docker-compose.yml Normal file
View File

@@ -0,0 +1,12 @@
version: 3
services:
app:
build: .
environment:
- DATABASE_URL=sqlite:///app/sqlite-data/db.sqlite3
- PORT=80
volumes:
- sqlite-data:/app/sqlite-data
volumes:
sqlite-data: