List of Docker-compose files for setup somes web applications
docker ps: list active containersdocker ps -a: list all containersdocker start/stop [container name]: Start/Stop a docker containerdocker rm [container name]: remove container but not the associated image(s)docker stop $(docker ps -q): Stop all dockersdocker rm $(docker ps -a -q): Remove all containers
docker images: list all docker imagesdocker rmi $(docker images -q): remove all docker images
docker network ls: networks list
docker-compose [-f docker-compose.file.yml] up -d: start/builds the containers configured in the docker-compose file(s)docker-compose down: Stops containers and removes containers, networks and volumes created by 'up'
Build image : docker build -t phpmongo .
Use in docker compose :
php:
build: .
image : phpmongo:latest