Set up a PostgreSQL database
Log in to the private Docker Repository
Create the Docker Compose file
docker-compose.yml
file with the following content:backend
: The Lunary API serverfrontend
: The Lunary web interfaceenrichers
: Enriches your data by communicating with the ml serviceml
: The machine learning service for advanced featuresautoheal
: A service to automatically restart unhealthy containersCreate the environment file
.env
file with the following variables:<username>, <password>, <host>, <port>, <dbname>
: Your PostgreSQL database credentials<your-backend-ip-or-url>
, <your-frontend-ip-or-url>
: Your server’s IP address or domain name<your_jwt_secret>
: A secure random string for JWT token generation<your_license_key>
: Your Lunary Enterprise Edition license key🎉 Done!
http://<your-frontend-ip-or-url>:8080
to access the app. LUNARY_API_URL=http://<your-backend-ip-or-url>:3333
when using the SDK to send queries to your server.DATABASE_URL
is correct and that the database is accessible from the Docker containers. If your PostgreSQL server is on the same host, make sure it’s configured to accept connections from Docker containers.
?sslmode=disable
to the DATABASE_URL
environment variable (not recommended if the database is exposed to the internet):
ML_URL
should be http://ml:3333
to properly resolve the ML service).
API_URL
is not correctly set in the frontend serviceAPI_URL
is correctly set in both the frontend container and your browser’s environment.