https://github.com/ega4432/containerized-express-boilerplate
This is a simple boilerplate of containerized Express monolithic application using Docker/Docker Compose.
https://github.com/ega4432/containerized-express-boilerplate
boilerplate docker docker-compose express mysql nginx nodejs
Last synced: 5 months ago
JSON representation
This is a simple boilerplate of containerized Express monolithic application using Docker/Docker Compose.
- Host: GitHub
- URL: https://github.com/ega4432/containerized-express-boilerplate
- Owner: ega4432
- License: mit
- Created: 2021-11-12T13:38:36.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-06-17T10:12:07.000Z (about 2 years ago)
- Last Synced: 2025-04-06T01:13:10.735Z (about 1 year ago)
- Topics: boilerplate, docker, docker-compose, express, mysql, nginx, nodejs
- Language: JavaScript
- Homepage:
- Size: 710 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# containerized-express-boilerplate
[](https://github.com/ega4432/containerized-express-boilerplate/actions/workflows/build.yaml)




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.

```sh
% git clone https://github.com//.git
% cp ./.env.example ./.env
```
2. Build and run the containerized environment in your local machine.
```sh
# Build
% make build
# Run containers
% make up
```
## Components
```sh
% tree ./services -L 1
./services
├── mysql
├── nginx
└── node
```
See below for details.
### Application container
key | value
--- | ---
Base image | [node](https://hub.docker.com/_/node):16.13.0-alpine3.12
Dependency | DB container: `service_healthy`
### Web contariner
key | value
--- | ---
Base image | [nginx](https://hub.docker.com/_/nginx):1.21.3-alpine
Dependency | Application container: `service_started`
### DB container
key | value
--- | ---
Base image | [mysql](https://hub.docker.com/_/mysql):8.0
Dependency | -
## License
MIT