nginx default config file is fully commented with explanations
This commit is contained in:
33
README.md
33
README.md
@@ -1,7 +1,12 @@
|
||||
|
||||
# inception
|
||||
|
||||
This README would normally document whatever steps are necessary to get your application up and running.
|
||||
---
|
||||
## git next commit
|
||||
|
||||
+ in makefile added -d to up in detach
|
||||
+ in makefile added close-nginx
|
||||
+ in makefile changed clean doesnt rm-images
|
||||
|
||||
---
|
||||
## questions
|
||||
@@ -24,12 +29,24 @@ This README would normally document whatever steps are necessary to get your app
|
||||
- `sudo docker stop $(sudo docker ps -q)` stop all runnings containers
|
||||
|
||||
---
|
||||
## Dockerfile basics
|
||||
## Docker basics
|
||||
|
||||
- the container posess its own filesystem
|
||||
- we need to copy the files it uses inside this filesystem
|
||||
- we can do that with COPY
|
||||
|
||||
**build and run a docker image**
|
||||
- `sudo docker build --tag <name> .`
|
||||
- `sudo docker run <name>`
|
||||
- `sudo docker images` to list docker images
|
||||
- `sudo docker image rm <number>`
|
||||
- `sudo docker ps` to list docker processes
|
||||
- `sudo docker ps rm <name>`
|
||||
|
||||
**execute a docker-compose file**
|
||||
- `sudo docker-compose up`
|
||||
- or `sudo docker-compose -f ./path up` to specify a path
|
||||
|
||||
---
|
||||
## ressources
|
||||
|
||||
@@ -42,6 +59,7 @@ This README would normally document whatever steps are necessary to get your app
|
||||
- [docker image from scratch](https://codeburst.io/docker-from-scratch-2a84552470c8)
|
||||
- [build context and image context](https://stackoverflow.com/questions/55108649/what-is-app-working-directory-for-a-dockerfile/55109065#55109065)
|
||||
- [nginx begginer guide](https://hub.docker.com/_/nginx/)
|
||||
- [nginx all directives for conf file](https://nginx.org/en/docs/dirindex.html)
|
||||
|
||||
#### docker pid 1
|
||||
|
||||
@@ -81,17 +99,6 @@ This README would normally document whatever steps are necessary to get your app
|
||||
- notice the 'v' below, before the version name (docker doc has it wong)
|
||||
- `sudo curl -L "https://github.com/docker/compose/releases/download/v2.10.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose`
|
||||
- `sudo chmod +x /usr/local/bin/docker-compose`
|
||||
**build and run a docker image**
|
||||
- be in directory with a Dockerfile
|
||||
- `sudo docker build --tag <name> .`
|
||||
- `sudo docker run <name>`
|
||||
- `sudo docker images` to list docker images
|
||||
- `sudo docker image rm <number>`
|
||||
- `sudo docker ps` to list docker processes
|
||||
- `sudo docker ps rm <name>`
|
||||
**execute a docker-compose file**
|
||||
- be in directory with a docker-compose.yml file
|
||||
- `sudo docker-compose up`
|
||||
|
||||
#### volumes vs bind mounts
|
||||
|
||||
|
||||
Reference in New Issue
Block a user