[GH-ISSUE #3267] error with docker-compose #1823

Closed
opened 2026-02-27 11:19:19 +03:00 by kerem · 1 comment
Owner

Originally created by @eortigoza5 on GitHub (Jun 25, 2024).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/3267

Hello, I have read this document
https://modoboa.readthedocs.io/en/latest/contributing/getting_started.html
and according to the document I only have to run
$ docker-compose up

and it turns out that it gives me errors

front_1 | yarn run v1.22.19
front_1 | $ vite --host
front_1 | /bin/sh: vite: not found
front_1 | error Command failed with exit code 127.
image

I try with version master, 2.2.4, 2.2.3, and 2.2.2

Is there a configuration file that must be filled out first before running the docker-compose up command?

Originally created by @eortigoza5 on GitHub (Jun 25, 2024). Original GitHub issue: https://github.com/modoboa/modoboa/issues/3267 Hello, I have read this document https://modoboa.readthedocs.io/en/latest/contributing/getting_started.html and according to the document I only have to run $ docker-compose up and it turns out that it gives me errors front_1 | yarn run v1.22.19 front_1 | $ vite --host front_1 | /bin/sh: vite: not found front_1 | error Command failed with exit code 127. ![image](https://github.com/modoboa/modoboa/assets/36522837/1c52b016-a0ab-4627-84d4-2cf786ebca25) I try with version master, 2.2.4, 2.2.3, and 2.2.2 Is there a configuration file that must be filled out first before running the docker-compose up command?
kerem closed this issue 2026-02-27 11:19:19 +03:00
Author
Owner

@eortigoza5 commented on GitHub (Jun 25, 2024):

I have solved the problem by adding this command on line 55 of docker-compose.yml
npm install &&
image

then I had to add sites (ip address) as ALLOWED_HOSTS in the container modoboa_api , in the file /code/test_project/test_project/settings.py
image

and it work!

<!-- gh-comment-id:2190188323 --> @eortigoza5 commented on GitHub (Jun 25, 2024): I have solved the problem by adding this command on line 55 of docker-compose.yml npm install && ![image](https://github.com/modoboa/modoboa/assets/36522837/2cd43232-b071-4997-91b0-19dee02db4ca) then I had to add sites (ip address) as ALLOWED_HOSTS in the container modoboa_api , in the file /code/test_project/test_project/settings.py ![image](https://github.com/modoboa/modoboa/assets/36522837/7579a155-c1a4-4256-b2d1-b0ce60d70f31) and it work!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1823
No description provided.