Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 582 Bytes

README.md

File metadata and controls

47 lines (32 loc) · 582 Bytes

docker-compose-demo

Todo Api

Build API Image

cd TodoApi

docker build -t todo-api .

run the image

docker run -p 5000:80 --name todoapi todo-api

Todo UI

Build UI Image

cd TodoApp

docker build -t todo-app .

run the image

docker run -p 4200:80 --name todoapp todo-app

Database

when debugging the API, run the database first

docker run \
  -d       \
  -p 5432:5432 \
  -e POSTGRES_USER=sa \
  -e POSTGRES_PASSWORD=passW0rd \
  -v postgresql:/var/lib/postgresql/data \
  postgres:12.2-alpine