Skip to content

Commit 30b4f8b

Browse files
committed
docker_composer
1 parent 3a5d7db commit 30b4f8b

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff 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

doc/docker_composer_01.png

116 KB
Loading

docker-compose.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@ name: lect_10_02_notes
33
services:
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:

0 commit comments

Comments
 (0)