User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
services:monicahq [2024/06/03 06:21] willyservices:monicahq [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== MonicaHQ ====== 
- 
-[[https://www.monicahq.com/|MonicaHQ]] sohuld be a tool to note and organize your entire life. A bit like a CRM, but on a personal base. I tried to install it, but failed after one full day of attempts and the tickets i opened about that fell silent so far, so i gave up because i prefer something more actively supported and better documented. 
- 
-As a short reminder: 
-<code bash> 
-useradd -d /data/daemons/monicahq -m monicahq 
-mkdir /data/monicahq 
-chown monicahq:users /data/monicahq -R 
-mkdir /data/monicahq/storage 
-mkdir /data/monicahq/mysql 
-chown monicahq:users /data/monicahq -R 
-su - monicahq 
-</code> 
- 
-Then i created the following //docker-composer.yml//: 
-<file - podman-compose.yml> 
-version: "3.9" 
- 
-services: 
-  app: 
-    image: monica:5.0-apache 
-    depends_on: 
-      - db 
-    ports: 
-      - 9980:80 
-    environment: 
-      - APP_ENV=local 
-      - APP_KEY=qHOBIml3zoCUNPbNfg9GaxXw7+6vh4MA 
-      - APP_URL=http://casa.gardiol.org/monicahq 
-      - APP_TRUSTED_PROXIES=* 
-      - DB_HOST=db 
-      - DB_DATABASE=monica 
-      - DB_USERNAME=monica 
-      - DB_PASSWORD=monica_secret 
-      - LOG_CHANNEL=stderr 
-      - CACHE_DRIVER=database 
-      - SESSION_DRIVER=database 
-      - QUEUE_DRIVER=sync 
-    volumes: 
-      - /deposito/monicahq/storage:/var/www/html/storage 
-    networks: 
-      - monicahq-net 
- 
-  db: 
-    image: mariadb:latest 
-    environment: 
-      - MYSQL_RANDOM_ROOT_PASSWORD=true 
-      - MYSQL_DATABASE=monica 
-      - MYSQL_USER=monica 
-      - MYSQL_PASSWORD=monica_secret 
-    volumes: 
-      - /deposito/monicahq/mysql:/var/lib/mysql 
-    networks: 
-      - monicahq-net 
- 
-networks: 
-  monicahq-net: {} 
-</file> 
- 
-I first tried with **monica:apache** image, then tried the **monica:5.0-apache** but got worse reuslts. 
- 
-The NGINX configuration was: 
-<file - monicahq.conf> 
-location /monicahq/ { 
-    proxy_pass         http://127.0.0.1:9980/; 
-    proxy_redirect     off; 
-    proxy_set_header   Host $host; 
-    proxy_set_header   X-Real-IP $remote_addr; 
-    proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for; 
-    proxy_set_header   X-Forwarded-Host $server_name; 
-} 
-</file> 
- 
-Here i also tried all the combinations i could thing of. 
- 
-At the end of the day, i managed to run the **monica:apache** image but only on port 9980, never trough the reverse proxy (it seems APP_URL is ignored or mis-managed, as well as the production/local setting forces HTTPS/HTTP in a weird way). 
- 
  

This website uses technical cookies only. No information is shared with anybody or used in any way but provide the website in your browser.

More information