Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MichalZalecki/docker-compose-node-postgres
https://github.com/MichalZalecki/docker-compose-node-postgres
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/MichalZalecki/docker-compose-node-postgres
- Owner: MichalZalecki
- Created: 2018-03-31T14:24:29.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T04:54:06.000Z (about 2 years ago)
- Last Synced: 2024-11-29T15:58:02.342Z (about 1 month ago)
- Language: TypeScript
- Size: 376 KB
- Stars: 75
- Watchers: 5
- Forks: 37
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
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.