Note: Make sure the Docker is installed
Run mysql container
docker run --name django-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -e MYSQL_DATABASE=clinicalsdb -p 3306:3306 -d mysqlBuild the app
docker build -t clinicals_app .
docker run -t --name=clinicals_app --link django-mysql:mysql -p 10111:8000 clinicals_app
docker exec -it clinicals_app python manage.py migrateRun the app
- Open the url
localhost:10111in the browser
docker-compose upRun the app
- Open the url
localhost:8000in the browser