getmaxun / maxun

🔥 Open-source no-code web data extraction platform. Turn websites to APIs and spreadsheets with no-code robots in minutes! [In Beta]
GNU Affero General Public License v3.0
5.63k stars 397 forks source link

App startup problems with Docker #96

Closed vukasinpetrovic closed 4 weeks ago

vukasinpetrovic commented 1 month ago

Hi, I've been trying to run the app but without success. I tried both master and dev branches, but there is the problem with communication between frontend and backend.

On the master branch it was constantly giving exception that the port 8080 is being already used. On the dev branch, when I go to /api-docs, it displays the swagger, but when I try to register, backend connection drops and it shuts down (I guess, because /api-docs no longer works).

Is this something you can fix quickly? I'm eager to try the app, but I'm stuggling to start it.

amhsirak commented 1 month ago

@vukasinpetrovic hi, yes we are working on the problem. Will be fixed in #93 by tomorrow 👍

amhsirak commented 4 weeks ago

@vukasinpetrovic can you try now? We've just added a new docker compose file

vukasinpetrovic commented 4 weeks ago

@amhsirak Thank you for the update, I'll try it now. Which branch should I use, dev or master?

amhsirak commented 4 weeks ago

@vukasinpetrovic 1. Use the master branch to build the compose

  1. If you get an error regarding a missing "start.sh" script (some users have reported this) remove the container and all volumes associated with it. It might be due to cache

Do let me know if this works

vukasinpetrovic commented 4 weeks ago

It works now, thank you for the update. Maybe only one more thing that could be useful for someone just starting the project, is an example .env file.

Here is mine if someone needs it:

NODE_ENV=production                     # Set to 'development' or 'production' as required
JWT_SECRET=your_jwt_secret_key          # Replace with a secure JWT secret key
DB_NAME=maxun                           # Your PostgreSQL database name
DB_USER=admin                           # PostgreSQL username
DB_PASSWORD=admin                       # PostgreSQL password
DB_HOST=postgres                        # Host for PostgreSQL in Docker
DB_PORT=5432                           # Port for PostgreSQL (default: 5432)
ENCRYPTION_KEY=your_encryption_key     # Key for encrypting sensitive data
MINIO_ENDPOINT=minio                   # MinIO endpoint in Docker
MINIO_PORT=9000                        # Port for MinIO (default: 9000)
MINIO_ACCESS_KEY=minio_access_key      # MinIO access key
MINIO_SECRET_KEY=minio_secret_key      # MinIO secret key
REDIS_HOST=redis                       # Redis host in Docker
REDIS_PORT=6379                        # Redis port (default: 6379)

# Backend URLs
BACKEND_URL=http://localhost:8080        # Internal URL for backend service
VITE_BACKEND_URL=http://localhost:8080 # URL used by frontend to connect to backend

# Optional Google OAuth settings for Google Sheet integration
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret
GOOGLE_REDIRECT_URI=your_google_redirect_uri

# Optional telemetry setting
MAXUN_TELEMETRY=true                   # Enable or disable telemetry (true or false)