Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Monica instead of Chandler in docker-compose #7333

Closed
3 tasks done
hycday opened this issue Jun 16, 2024 · 5 comments
Closed
3 tasks done

Getting Monica instead of Chandler in docker-compose #7333

hycday opened this issue Jun 16, 2024 · 5 comments
Labels

Comments

@hycday
Copy link

hycday commented Jun 16, 2024

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • I agree to follow Monica's Code of Conduct.

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:
- data:/var/www/html/storage
restart: always
depends_on:
- db
- redis

db:
image: mariadb:11
env_file: .env
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=true
- MYSQL_DATABASE=monica
- MYSQL_USER=monica
volumes:
- mysql:/var/lib/mysql
restart: always

redis:
image: redis:alpine
restart: always

cron:
cron:
build: ./app
image: monica-app
command: cron.sh
env_file: .env
restart: always
volumes:
- data:/var/www/html/storage
depends_on:
- db
- redis

queue:
build: ./app
image: monica-app
command: queue.sh
env_file: .env
restart: always
volumes:
- data:/var/www/html/storage
depends_on:
- db
- redis

web:
build: ./web
image: monica-web
restart: always
ports:
- 8289:80
volumes:
- data:/var/www/html/storage:ro
depends_on:
- app

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 hycday added the bug label Jun 16, 2024
@hycday
Copy link
Author

hycday commented Jun 16, 2024

@Szeraax as discussed :)

@Szeraax
Copy link

Szeraax commented Jun 17, 2024

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
Copy link
Author

hycday commented Jun 17, 2024

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
Copy link
Author

hycday commented Jun 17, 2024

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

@hycday hycday closed this as completed Jun 17, 2024
@Szeraax
Copy link

Szeraax commented Jun 17, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants