- Clone this repo
git clone https://github.com/sanyaches/blog-docker-compose.git
- CMD
cd blog-docker-compose
- Create
.env
file in blog-server folder, example is below - Run command
docker-compose up
in root folder - Open
localhost:5000
in browser
###### .env expample ######
POSTGRES_HOST=blog-postgres
POSTGRES_PORT=5432
POSTGRES_DB=blog
POSTGRES_USER=postgres
POSTGRES_PASSWORD=228sanya228