Linux, Caddy, MySQL, NodeJS Stack
Source: haova/LCMN
Directory Stucture
|- app : NodeJS Application, clone this directory for each app
|- Dockerfile
|- mysql : MySQL Server
|- caddy : Caddy Server
Commands
Build image and start docker containers
docker compose up --build
Stop docker containers and remove volumes.
docker compose down -v
Environment Variables
Copy .sample.env to .env.
| ENV | Desc |
|---|---|
| MYSQL_ROOT_PASSWORD | |
| MYSQL_DATABASE | |
| MYSQL_USER | |
| MYSQL_PASSWORD | |
| APP_PORT |
By default, you can:
- Access to caddy server by:
localhost:8080. - Access to adminer server by:
localhost:8081.
Notes
- Do not use this on the production environment.
License
MIT.