Skip to content

DongLei-tw/docker-compose-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •