Skip to content

Commit

Permalink
update documentation lemp stack works fine
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Bouye committed Mar 10, 2022
1 parent 9636662 commit e71909d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COMPOSE_PROJECT_NAME="lemp"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.env
24 changes: 19 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,29 @@ For run docker compose container :

The `docker compose up` run the container and `-d` is for run the process in background.

For stop container :
Stop the container :
`docker-compose stop`

For see all container on the current project :
List containers :
`docker-compose ps`
this command is for display all the current container who runs on the current project.

For see container logs :
List container logs :
`docker-container logs -f`

for see logs of one service only type :
`docker-container logs -f name_of_the_service`
Tail the container's logs :
`docker-container logs -f [service]`
Replace [service] with a service name (e.g. nginx) to display this service's logs only.

Restart the container :
`docker-compose restart`

Stop and/or Destroy container:
`docker-compose down`

Stop and/or destroy the containers and their volumes
`docker-compose down -v`

Delete everything, including images and orphan containers
`docker-compose down -v --rmi all --remove-ophans`

0 comments on commit e71909d

Please sign in to comment.