- Create a file called .env and enter the following text: DB_NAME=library DB_APPLICATION_USER=XXXXXXXXX DB_APPLICATION_PASSWORD=XXXXXXXXX DB_ROOT_PASSWORD=XXXXXXXXX (replace the XXXXXs with credentials)
- Run the app and db services:
docker-compose up
- To start the services separately:
docker-compose up librarydb
docker-compose up libraryapp
docker build --tag ces-books .
(change the version)
-
Log in
docker login --username=redyelruc
-
Get List of Images
docker images
-
Tag Image
docker tag ces-books redyelruc/ces-books:4.0
-
Push to Docker Hub
docker push redyelruc/ces-books:4.0
docker run --publish 80:80 -e DATABASE='mysql://<your_username>:<your_mysql_password>@<your_mysql_hostname>/<your_database_name>' ces-books:4.0
docker run --publish 80:80 -e DATABASE='mysql://<your_username>:<your_mysql_password>@<your_mysql_hostname>/<your_database_name>' redyelruc/ces-books:4.0
docker system prune -a