chore: simplify CRM to official Monica deployment
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
# MischLabs Monica Deployment
|
||||
|
||||
This repository is the MischLabs fork of Monica CRM, based on the upstream `monicahq/monica` `4.x` branch.
|
||||
This repository now acts as the MischLabs deployment repository for Monica CRM.
|
||||
The NAS runs the official Docker image directly instead of building and pushing a custom image through Gitea.
|
||||
|
||||
## Repository and Image
|
||||
|
||||
- Gitea repository: `https://git.mischlabs.de/MrDiderot/CRM.git`
|
||||
- Upstream base: `https://github.com/monicahq/monica`, branch `4.x`
|
||||
- NAS-internal registry image: `localhost:3001/mrdiderot/crm:latest`
|
||||
- Public Gitea package UI: `https://git.mischlabs.de/MrDiderot/-/packages/container/crm/latest`
|
||||
- Runtime image: `monica:4-apache`
|
||||
- NAS path: `/volume2/docker/mischcrm`
|
||||
- Default NAS port: `38090:80`
|
||||
- Public URL: `https://crm.mischlabs.de`
|
||||
|
||||
## Architecture
|
||||
|
||||
The NAS does not build the image locally. Gitea Actions builds a MischLabs package image from the official Monica Apache image and pushes it to the local Gitea registry through `localhost:3001`. This avoids Cloudflare upload limits for large Docker layers. The NAS runs:
|
||||
The NAS pulls Monica directly from Docker Hub. This avoids Cloudflare upload limits for large Docker layers and keeps the setup simple.
|
||||
|
||||
- `mischcrm`: Monica Apache web container
|
||||
- `mischcrm_cron`: Monica scheduler container using `cron.sh`
|
||||
@@ -42,7 +42,7 @@ Edit `.env`:
|
||||
|
||||
- `APP_KEY` must be `base64:<openssl rand -base64 32 output>`
|
||||
- `DB_PASSWORD` must be the long random hex password
|
||||
- `APP_URL` must match the public reverse proxy URL, for example `https://crm.mischlabs.de`
|
||||
- `APP_URL` must be `https://crm.mischlabs.de`
|
||||
|
||||
Then start:
|
||||
|
||||
@@ -60,7 +60,7 @@ docker logs mischcrm --tail=120
|
||||
|
||||
## Updates
|
||||
|
||||
Watchtower should update `localhost:3001/mrdiderot/crm:latest` automatically after Gitea Actions pushes a new image.
|
||||
Watchtower updates `monica:4-apache` directly from Docker Hub.
|
||||
|
||||
Manual update:
|
||||
|
||||
@@ -75,10 +75,10 @@ docker compose up -d
|
||||
|
||||
Do not commit `.env`.
|
||||
|
||||
Do not delete the Docker volumes unless you explicitly want to remove Monica data.
|
||||
Do not delete Docker volumes unless you explicitly want to remove Monica data.
|
||||
|
||||
If Monica redirects incorrectly behind Cloudflare, check:
|
||||
|
||||
- `APP_URL`
|
||||
- `APP_TRUSTED_PROXIES=*`
|
||||
- reverse proxy target port `38090`
|
||||
- Cloudflare tunnel target port `38090`
|
||||
|
||||
Reference in New Issue
Block a user