https://github.com/amineo/adonis4-inertiajs-react-docker-starter
Inertia + Adonis 4 + React + Emotion + Tailwind + Docker + PM2
https://github.com/amineo/adonis4-inertiajs-react-docker-starter
adonisjs docker inertiajs nodejs pm2-docker react
Last synced: 3 months ago
JSON representation
Inertia + Adonis 4 + React + Emotion + Tailwind + Docker + PM2
- Host: GitHub
- URL: https://github.com/amineo/adonis4-inertiajs-react-docker-starter
- Owner: amineo
- License: mit
- Created: 2020-03-25T15:03:59.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T13:24:38.000Z (over 2 years ago)
- Last Synced: 2025-01-24T12:23:44.699Z (5 months ago)
- Topics: adonisjs, docker, inertiajs, nodejs, pm2-docker, react
- Language: JavaScript
- Size: 2.52 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Inertia + Adonis 4 + React + Emotion + Tailwind + Docker + PM2
## (WIP) Docs coming soon
## About
Containerized AdonisJS + PM2 for portability and development flexibility.
This project aims to keep an organized and reusable file structure.---
## Getting Started / Running
The first thing you need to do is generate an `APP_KEY` by simply running `./generate-adonis-app-key.sh`
This will create a file containing the key that Adonis uses for encryption.### Local Dev
After you have the `adonis.appkey.v1` file created, you can then run `docker-compose up`
The `docker-compose.override.yml` is automatically picked up and is used or local dev.**In local development, the Adonis app will automatically reload.**
### Example Deployment
Deploying this example into Docker Swarm, you would use something like:
```docker stack deploy -c docker-compose.yml adonis```Where `docker-compose.override.yml` would **not** get picked up.
---
## Some Opinions
- Dockerfiles and related container artifacts don't belong in your app's root folder.
- Use docker-compose.override.yml for local development---
## Structure
```
|-[app]
|---[myapp]
|-----...the-adonis-app-files|-[build]
|---[myapp]
|-----...Dockerfile|-docker-secrets
|---adonis.appkey.v1
```