Skip to content

Latest commit

 

History

History
22 lines (22 loc) · 552 Bytes

README.md

File metadata and controls

22 lines (22 loc) · 552 Bytes

react-django-docker

関連記事

https://hisuiblog.com/docker-django-react-mysql-nginx/

gitのclone

git clone https://github.com/hisuihisui/react-django-docker.git

dockerの起動

cd react-django-docker
docker-compose up -d

初期設定

docker-compose run --rm django sh -c "python manage.py collectstatic"
docker-compose run --rm django sh -c "python manage.py migrate"
docker-compose run --rm django sh -c "python manage.py createsuperuser"

MySQLコンテナに入る

docker-compose exec db /bin/bash