Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/MichalZalecki/docker-compose-node-postgres


https://github.com/MichalZalecki/docker-compose-node-postgres

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Docker Compose for Node.js and PostgreSQL

For the sake of making it more real-world, setup has also a build step (here with **TypeScript**).

## [Read more](https://michalzalecki.com/docker-compose-for-nodejs-and-postresql/)

I've put together an article which explains most of the code from this repo: [Docker Compose for NodeJS and PostreSQL](https://michalzalecki.com/docker-compose-for-nodejs-and-postresql/)

## Run

docker-compose up --build

## Test

```sh
curl http://localhost:3000/ping
# {"environment":"development","database":"up"}
```

## WARNING

Don't keep `.env` file in the repo. It's here as it makes demo example simpler.