Commit 022cdfef authored by mdsecurity's avatar mdsecurity
Browse files

fixed docker-compose

parent e45e689f
Pipeline #429 passed with stage
in 7 minutes and 9 seconds
...@@ -12,4 +12,4 @@ RUN apt-get install libldap2-dev -y ...@@ -12,4 +12,4 @@ RUN apt-get install libldap2-dev -y
RUN apt-get install RUN apt-get install
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
ADD . /go/ ADD . /go/
CMD ./startup.sh
...@@ -4,7 +4,7 @@ services: ...@@ -4,7 +4,7 @@ services:
build: . build: .
ports: ports:
- "8000:8000" - "8000:8000"
command: python go/manage.py runserver 0.0.0.0:8000 command: /bin/bash ./startup.sh #python go/manage.py runserver 0.0.0.0:8000
volumes: volumes:
- .:/go - .:/go
depends_on: depends_on:
......
python go/manage.py runserver 0.0.0.0:8000
python go/manage.py flush --no-input python go/manage.py flush --no-input
python go/manage.py makemigrations python go/manage.py makemigrations
python go/manage.py makemigrations go python go/manage.py makemigrations go
python go/manage.py migrate python go/manage.py migrate
python go/manage.py createsuperuser --noinput --username=dhaynes3 --email=dhaynes3@masonlive.gmu.edu python go/manage.py createsuperuser --noinput --username=dhaynes3 --email=dhaynes3@masonlive.gmu.edu
#echo "from django.contrib.auth.models import User; User.objects.create_superuser('dhaynes3', 'admin@example.com', 'pass')" | python manage.py shell # #echo "from django.contrib.auth.models import User; User.objects.create_superuser('dhaynes3', 'admin@example.com', 'pass')" | python manage.py shell
python go/manage.py runserver 0.0.0.0:8000
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment