Create .env file in root directory and copy all variables from .env.example file into .env
Run app
docker-compose up
If permission required; Use
sudo docker-compose up
To stop
docker-compose down
Browse to http://localhost:5001/index.php
Login with username and password as db_user and db_password correspondingly
You can find app_db schema has been created with table users
Browse to http://localhost You can see all the documented endpoints in UI You can execute any endpoint with no worries
To list all the docker images
To create image from Dockerfile by providing name to image
- If you get permission error then add [sudo] in the front
To delete image If you have to force delete the image
docker rmi -f image-name
When you want to build over an existing image with existing image name then previous image name will become . Use this command to remove all the images with
This command will run the container from the image. But the container will run in isolation; hence connection to the server will gets refused whenever API is called. This requires networking to be able to connect with server.
To run a the container at local network using port 8080 from the image. Now we can connect to the server.
To list all the docker containers that are being run.
To stop docker container that is being run
To list all docker volume
To delete the volume
The Daemon might be using the volume; due to which we might not be able to delete the volume. After success run above command. Delete volume with command
To delete all containers including its volumes use
To delete all the images
Delete all volumes