fixing admin user
This commit is contained in:
@@ -21,6 +21,8 @@ COPY . /app/
|
|||||||
|
|
||||||
RUN python manage.py collectstatic --noinput --clear
|
RUN python manage.py collectstatic --noinput --clear
|
||||||
RUN python manage.py migrate --noinput
|
RUN python manage.py migrate --noinput
|
||||||
|
RUN python manage.py createsuperuser --username admin --email admin@example.com --password mysecretpassword --noinput
|
||||||
|
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
||||||
|
|||||||
2
Procfile
2
Procfile
@@ -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
12
docker-compose.yml
Normal 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:
|
||||||
Reference in New Issue
Block a user