File tree Expand file tree Collapse file tree 4 files changed +84
-0
lines changed
Expand file tree Collapse file tree 4 files changed +84
-0
lines changed Original file line number Diff line number Diff line change 1+ # docker-compose
2+
3+
4+ ``` yml
5+ version : 3
6+ networks :
7+ laravel :
8+
9+ services :
10+ site :
11+ build :
12+ context : .
13+ dockerfile : Dockerfile
14+ image : nginx
15+ container_name : contname
16+ ports :
17+ - 80:80 # host:container
18+ env :
19+ -
20+ volumes :
21+ -
22+ entrypoint :
23+ -
24+ depends_on :
25+ redis
26+ networks :
27+ laravel
28+ ` ` `
Original file line number Diff line number Diff line change 1+ # Dockerfile parts
2+
3+ 1 . FROM
4+ 2 . ENV
5+ 3 . RUN
6+ 4 . EXPOSE
7+ 5 . CMD
8+ 6 . ENTRYPOINT
9+ 7 . COPY
10+ 8 . WORKDIR
11+ 9 . VOLUME
12+ 10 . ADD
13+
14+ # Resources
15+
16+ * https://blog.knoldus.com/docker-dockerfile/
17+ * https://docs.docker.com/engine/reference/builder/
18+ * https://docs.docker.com/develop/develop-images/dockerfile_best-practices/
19+
20+ * https://www.youtube.com/watch?v=tb4eDxdJscg
21+ * https://www.youtube.com/playlist?list=PLEiEAq2VkUULWjtlQxn8Wq9sPdxg-N-T0
22+
23+ ~ entrypoint vs cmd
24+
25+ * https://phoenixnap.com/kb/docker-cmd-vs-entrypoint
26+ * https://stackoverflow.com/a/41676550
Original file line number Diff line number Diff line change 1+ # what is docker
2+ Docker is a configuration process for deployment. development -> ship -> run
3+
4+ # Docker container
5+
6+ Docker container is instance of image
7+
8+ # Docker image
9+
10+ Docker image as like class , all binary here which store on docker hub and cant change anything that image.
11+
12+ # Docker volumes
13+
14+ Docker persistence data store on volumes.
15+
16+ # Dockefile
17+
18+ Docker build image with Dockerfile .Dockefile is text format whiche are commands
19+
20+ #docker-compose.yml
21+
22+ * create multiple container
Original file line number Diff line number Diff line change 1+ # resources
2+
3+ * https://github.com/veggiemonk/awesome-docker
4+ * https://www.guru99.com/docker-interview-questions.html
5+ * https://github.com/collabnix/dockerlabs/blob/master/docker/docker-interview-questions.md
6+ * https://www.youtube.com/watch?v=wi-MGFhrad0&list=PLhW3qG5bs-L99pQsZ74f-LC-tOEsBp2rK ** *
7+ * https://www.youtube.com/watch?v=jPdIRX6q4jA&list=PLy7NrYWoggjzfAHlUusx2wuDwfCrmJYcs
8+ * [ install docker aws] ( https://gist.github.com/mostafa6765/b781836545227e1198add7a68694c3ea )
You can’t perform that action at this time.
0 commit comments