# Docker Compose: API, database and mail

> An Express API with PostgreSQL and a development mail server, run together with Docker Compose.

## Role

Sole developer

## Approach

- Compose services: PostgreSQL, the app and MailDev on a shared network.
- Routes list users and send an HTML email to a user with Nodemailer (MailDev in development, SMTP otherwise).
- An init SQL script creates the table and sample rows.

Stack: Node.js, Express, PostgreSQL, Nodemailer, Docker Compose

Repository: https://github.com/tdphatstudy/simple-docker

Source: https://tdphat.io.vn/projects/simple-docker
