docker ps
docker ps -a | awk '{print $1}' | while read id; do docker rm $id; done
docker run -d --env MONGO_INITDB_ROOT_USERNAME=mongoadmin --env MONGO_INITDB_ROOT_PASSWORD=secret mongo
docker inspect 4ab8cf549a15
mvn run
mvn spring-boot:run
MONGO_USER=mongoadmin MONO_PSWD=secret MONGO_HOST="172.17.0.2" MONGO_PORT=27017 mvn spring-boot:run
ping 172.17.0.2
docker build -t myspringapp .
docker run myspringapp
docker run -p 8080:8080 --env "MONGO_USER=mongoadmin" --env "MONGO_PSWD=secret" --env "MONGO_HOST=172.17.0.2" --env "MONGO_PORT=27017" myspringapp
docker image ls
docker build -t mymultistageapp .
docker run -p 8080:8080 --env "MONGO_USER=mongoadmin" --env "MONGO_PSWD=secret" --env "MONGO_HOST=172.17.0.2" --env "MONGO_PORT=27017" mymultistageapp
mkdir democompose
mv demo democompose/
docker-compose build
docker compose up -d
-
Notifications
You must be signed in to change notification settings - Fork 0
MMw-Unibo/dsm-ex2-SpringDataREST_Containerized
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published