26 lines
509 B
Bash
26 lines
509 B
Bash
#!/bin/bash
|
|
|
|
cd ~/
|
|
git clone https://github.com/EdgeKing810/Entities
|
|
cd Entities/
|
|
docker compose up -d
|
|
|
|
cat init-mongo.js
|
|
ls mongo-volume/
|
|
tail api-nodejs/logs/access.log
|
|
docker exec -it entities-db mongosh mongodb://root:root@127.0.0.1:27017/entities_db
|
|
|
|
docker compose down
|
|
docker compose up -d
|
|
|
|
docker ps -a
|
|
docker logs entities-db
|
|
docker logs entities-api
|
|
docker logs entities-front
|
|
|
|
sudo apt install jq
|
|
curl http://localhost:7000/api/v1/reset
|
|
curl http://localhost:7000/api/v1/ | jq
|
|
|
|
docker compose down
|