Created for YP's DevOps Certification Class.
Clone the project
$ git clone https://gitlab.com/group-five4/note-app.gitComment out image and container_name for both frontend and backend services in docker-compose.yaml
frontend:
restart: always
# image: ${CI_REGISTRY_IMAGE}/frontend:dev-${CI_COMMIT_SHORT_SHA}
# container_name: frontend-${CI_COMMIT_SHORT_SHA}
build:
...
backend:
restart: always
# image: ${CI_REGISTRY_IMAGE}/backend:dev-${CI_COMMIT_SHORT_SHA}
# container_name: backend-${CI_COMMIT_SHORT_SHA}
build:
...Create a .env file at root level of the project directory and put in this key-value pair
MYSQL_ROOT_PASSWORD=rootBuild and run the container stack
$ docker compose upClient: ReactJS, React-Router, Bootstrap
Server: NodeJS, ExpressJS
Database: MySQL