Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 782 Bytes

README.md

File metadata and controls

37 lines (26 loc) · 782 Bytes

Basic Web Service

Developing in docker

Install container and run app

$ docker pull postgres
$ docker run --name postgres -p 5432:5432 -e POSTGRES_PASSWORD=postgres --net dev -d postgres

Connect to postgres container

$ docker run -it --rm --link postgres:postgres --net dev postgres psql -h postgres -U postgres

Build basic service image

$ ./build.sh

Run basic service container

$ docker-compose -f ./docker-compose-kafka.yml up -d
$ docker run --name basic-service --link postgres:postgres \
    -p 9000:9000 \
    --link zookeeper:zookeeper --link kafka:kafka --net dev -d basic-service

Swagger info

API docs Swagger UI