File tree Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,23 @@ scipts/docker_build_docker-compose.cmd
8686
8787![ ] ( doc/docker_02.png )
8888
89+ #### DOCKER RUN COMPOSE WITH HUB IMAGE
90+
91+ copy 2 files to your folder:
92+ - docker-compose.yml
93+ - .env
94+
95+ Run in console:
96+
97+ - ``` docker compose pull ```
98+ - ``` docker compose up -d ```
99+
100+ ![ docker_composer] ( doc/docker_composer_01.png )
101+
102+ open in browser http://localhost:8000
103+
104+ #### DOCKER HUB IMAGE
105+ https://hub.docker.com/repository/docker/lexxai/goit_web_lect_10_02_notes
89106
90107
91108### ADDON
Original file line number Diff line number Diff line change @@ -3,13 +3,16 @@ name: lect_10_02_notes
33services :
44 pg :
55 image : postgres
6- ports :
7- - " 5432:5432"
6+ expose :
7+ - " 5432"
8+ # ports:
9+ # - "5432:5432"
810 env_file :
911 - ./.env
1012
1113 code :
1214 build : ./
15+ image : lexxai/goit_web_lect_10_02_notes:latest
1316 ports :
1417 - " 8000:8000"
1518 env_file :
You can’t perform that action at this time.
0 commit comments