-
Notifications
You must be signed in to change notification settings - Fork 3
Deployment on Docker containers
Bhavyai Gupta edited this page May 22, 2022
·
1 revision
You can run the BudLib Web with a single command using docker compose, and access it at http://localhost
$ docker compose -f docker/docker-compose.yml up -d
To tear it down
$ docker compose -f docker/docker-compose.yml down
Or if you like, spin up the BudLib Web using step-by-step approach
-
Create a Docker network
$ docker network create budnetwork
-
Pull the latest
budlib-mysql
image from Docker Hub$ docker pull zbhavyai/budlib-mysql:1.0.0
-
Run the
budlib-mysql
image$ docker run -d -it --network budnetwork -e MYSQL_ROOT_PASSWORD=root --name budlib-mysql zbhavyai/budlib-mysql:1.0.0
-
Pull the latest
budlib-api
image from Docker Hub$ docker pull zbhavyai/budlib-api:1.0.0
-
Run the
budlib-api
image$ docker run -d -it -p 8080:8080 --network budnetwork --name budlib-api zbhavyai/budlib-api:1.0.0
-
Pull the latest
budlib-web
image from Docker Hub$ docker pull zbhavyai/budlib-web:1.0.0
-
Run the
budlib-web
image$ docker run -d -it -p 80:80 --network budnetwork --name budlib-web zbhavyai/budlib-web:1.0.0