docker-compose -f docker-compose.yml build
docker-compose -f docker-compose.yml up -d
docker-compose -f docker-compose.yml down
or type docker ps
,
find image name and stop it using docker stop [CONTAINER ID]
in InteliJ: "Maven Projects" -> "Lifecycle" -> "Install" and then:
cd backend/
docker build -f Dockerfile.server -t spring-backend .
docker run -p 8080:8080 -t spring-backend
cd frontend/
npm run build
docker build -f Dockerfile.web -t react-frontend
docker run -p 3000:3000 -t react-frontend
Dockerfiles without any extension are for production, dockerfiles .server and .web are for local development only!
cd backend/
or cd frontend/
heroku login
heroku container:login
heroku container:push web --app [APP NAME]
heroku container:release web --app [APP NAME]
heroku open --app [APP NAME]