containerized-express-boilerplate

This is a simple boilerplate of containerized Express monolithic application using Docker/Docker Compose.

MIT License

Stars
0

containerized-express-boilerplate

This is a simple boilerplate of containerized Express monolithic application using Docker/Docker Compose.

Requirements

  • Git
  • Docker

Usage

  1. Create your new repository using this boilerplate for template.
% git clone https://github.com/<YOUR_USERNAME>/<YOUR_REPOSITORY>.git

% cp ./.env.example ./.env
  1. Build and run the containerized environment in your local machine.
# Build
% make build

# Run containers
% make up

Components

% tree ./services -L 1
./services
├── mysql
├── nginx
└── node

See below for details.

Application container

key value
Base image node:16.13.0-alpine3.12
Dependency DB container: service_healthy

Web contariner

key value
Base image nginx:1.21.3-alpine
Dependency Application container: service_started

DB container

key value
Base image mysql:8.0
Dependency -

License

MIT