- Use
--build
to rebuild images when you launch project
docker compose up --build
- Use
--force-recreate
to force recreate image and containers
docker compose up --force-recreate
- Launch in detach mode, you will not see containers log directly in your terminal
docker compose up -d
localhost:8080
to reach frontend containerlocalhost:5050
to reach pgadminlocalhost:3080
to reach backend containerlocalhost:3080/users
to reach users table inside our database
- If you want to rebuild images using compose
- You can use
--no-cache
with it to build without using cache
docker compose build
docker compose down
- Clean containers and images not in use
docker system prune
- Remove all volumes
docker volume rm $(docker volume ls -q)
docker exec -ti [CONTAINER_NAME] sh