- open utils directory
- Deploy portainer service with stack portainer
docker stack deploy --compose-file=db.docker-compose.yml dockerize
- open http://localhost:9000 from your browser
- setup the username and password
- login using username and password
- open docker directory
- you will see many folders that implement dockerfile
- choose a folder and open it
- build the docker image from dockerfile
docker build --tag "react-app:latest" .
- start the container from docker image
docker run --name react-app -p 5000:5000 react-app:latest
- open http://localhost:5000 from the browser
- open docker-compose directory
- build multiple services with docker-compose
docker-compose -f service.docker-compose.yml build
- run multiple service containers with docker-compose
docker-compose -f serive.docker-compose.yml up
- remove multiple service containers with docker-compose
docker-compose -f service.docker-compose.yml down
Build database
docker-compose -f db.docker-compose.yml build
Deploy database service with stack dockerize
docker stack deploy --compose-file=db.docker-compose.yml dockerize
Build app
docker-compose -f service.docker-compose.yml build
Deploy app with stack dockerize
docker stack deploy --compose-file=service.docker-compose.yml dockerize