๐Ÿ“ฆ camandel / 4tiers-app-demo

4 tiers application demo with docker and docker-compose

โ˜… 0 stars โ‘‚ 1 forks ๐Ÿ‘ 0 watching
๐Ÿ“ฅ Clone https://github.com/camandel/4tiers-app-demo.git
HTTPS git clone https://github.com/camandel/4tiers-app-demo.git
SSH git clone git@github.com:camandel/4tiers-app-demo.git
CLI gh repo clone camandel/4tiers-app-demo
Carlo Mandelli Carlo Mandelli bump to nodejs 19 and docker-compose-plugin 95f3f11 3 years ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ api
๐Ÿ“ img
๐Ÿ“ reverse-proxy
๐Ÿ“ sql-scripts
๐Ÿ“ webapp
๐Ÿ“„ manual-steps.md
๐Ÿ“„ README.md
๐Ÿ“„ README.md

4 tiers application demo with docker and docker-compose

Application demo composed by:
  • 4 services (db, api server, fe server, reverse-proxy)
  • 3 networks
  • 1 volume

Architecture

image

Usege

  • clone this repository
  • add new records in sql-scripts/init.sql file (optional)
  • start containers with docker-compose (or, just to learn how it works, follow the manual steps):
docker compose up -d
  • open a browser on http://<your-ip-here>:8001:
image

Directories structure

โ”œโ”€โ”€ api
โ”‚ย ย  โ”œโ”€โ”€ Dockerfile
โ”‚ย ย  โ”œโ”€โ”€ index.js
โ”‚ย ย  โ””โ”€โ”€ package.json
โ”œโ”€โ”€ docker-compose.yaml
โ”œโ”€โ”€ reverse-proxy
โ”‚ย ย  โ”œโ”€โ”€ default.conf
โ”‚ย ย  โ””โ”€โ”€ Dockerfile
โ”œโ”€โ”€ sql-scripts
โ”‚ย ย  โ””โ”€โ”€ init.sql
โ””โ”€โ”€ webapp
    โ”œโ”€โ”€ Dockerfile
    โ”œโ”€โ”€ index.js
    โ””โ”€โ”€ package.json