Skip to content

Commit

Permalink
docker_composer
Browse files Browse the repository at this point in the history
  • Loading branch information
lexxai committed Oct 22, 2023
1 parent 3a5d7db commit 30b4f8b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,23 @@ scipts/docker_build_docker-compose.cmd

![](doc/docker_02.png)

#### DOCKER RUN COMPOSE WITH HUB IMAGE

copy 2 files to your folder:
- docker-compose.yml
- .env

Run in console:

- ```docker compose pull```
- ```docker compose up -d```

![docker_composer](doc/docker_composer_01.png)

open in browser http://localhost:8000

#### DOCKER HUB IMAGE
https://hub.docker.com/repository/docker/lexxai/goit_web_lect_10_02_notes


### ADDON
Expand Down
Binary file added doc/docker_composer_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 5 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@ name: lect_10_02_notes
services:
pg:
image: postgres
ports:
- "5432:5432"
expose:
- "5432"
# ports:
# - "5432:5432"
env_file:
- ./.env

code :
build: ./
image: lexxai/goit_web_lect_10_02_notes:latest
ports:
- "8000:8000"
env_file:
Expand Down

0 comments on commit 30b4f8b

Please sign in to comment.