monicahq / monica

Personal CRM. Remember everything about your friends, family and business relationships.
https://beta.monicahq.com
GNU Affero General Public License v3.0
21.04k stars 2.09k forks source link

Getting Monica instead of Chandler in docker-compose #7333

Closed hycday closed 2 weeks ago

hycday commented 2 weeks ago

⚠️ This issue respects the following points: ⚠️

Bug description

Despite using the Chandler image, i still get Monica install

Steps to reproduce

Hi all,

Here is my docker-compose.yml :

`version: "3.3"

services: app: build: ./app image: ghcr.io/monicahq/monica-next:main env_file: .env volumes:

volumes: data: mysql: `

install works well, and docker runs without any issue, however what I get is Monica Version: 4.1.2 and not Version 5.X.X

I tried of course stopping the docker containers, removing them, removing the images and volumes, and reinstalling, didnt change anything...

Can you please guide me ?

Expected behavior

I am expecting to have Chandler (or Monica v 5.x.x) installed

Environment

Your own self-hosted instance (v5 a.k.a chandler version or main branch)

Version of Monica

4.1.2

Installation method

Docker image

Web server

None

Database engine version

None

Additional info

No response

hycday commented 2 weeks ago

@Szeraax as discussed :)

Szeraax commented 2 weeks ago

You need to use the official beta image if you wanna use the v5 branch :D You can view them all here: https://hub.docker.com/_/monica Notice the ones that are starting with 5? Those ones!

Here is my compose that I have running for this TESTING ONLY setup. I mention TESTING ONLY because I don't have any volume that I care about here. No db of any kind. And I use my env settings for the few settings there. Like so:

version: "3.9"
name: chandler
services:
  monica:
    container_name: monica
    image: monica:5.0.0-beta.4-apache
    environment:
      - DB_HOST=db
      - DB_USERNAME=${DB_USER}
      - DB_PASSWORD=${DB_PASS}
      - APP_ENV=production
      - APP_URL=${MY_ACCESS_URL}
      - APP_TRUSTED_PROXIES=*
      - MAIL_MAILER=log
    ports:
      - 45008:80
    restart: unless-stopped
networks: {}

.env file:

DB_USER=chandler
DB_PASS=Purplish3-Paralyze-Campsite
MY_ACCESS_URL=192.168.1.84:45008
hycday commented 2 weeks ago

so... good news is that it works now :) thank you @Szeraax

"bad" news is that i don't have an email server and i cannot verify my account... i tried putting "MAIL_MAILER=log" but I don't know where to look for the info, any help would be appreciated

hycday commented 2 weeks ago

ok, unsure if this was the right approach but i did:

find / -name "*.log" -mmin -60 2>/dev/null looked for log files related to the docker

found one did grep -i "verify" file.log

and saw a url that looks like :

https://DOMAIN/email/verify/UUID/OTHERUUID?expires=TIMESTAMP&signature=OTHERUUID

opened it in a browser and it worked :)

so i'll close this ticket, but still curious about what would have been the approach to find the log otherwise if that was not the right approach

Szeraax commented 2 weeks ago

Yup, putting it in the log is exactly what I did so that I didn't have to put in my gmail auth token. Glad you got it.