Home

Awesome

Quant-UX for Docker

Quant-UX is a great open source prototyping / mock-up application created by Klaus Schaefers.

I started working to make this into a dockerized application as a way to help encourage the continued development of the tool.

The DockerFiles use the smallest images I could find as a base, and the docker-compose is really setup to allow for the easiest deployment possible.

I recently added arm64 builds, but don't currently have a way to test them. They built successfully, but that's a far cry from tested and functional. I'm adding the necessary changes to the compose file if you want to use the arm64 images.

Docker-Compose Details

To use the docker-compose.yml file, you can download just the compose file with the command:

wget https://raw.githubusercontent.com/bmcgonag/quant-ux-docker/main/docker-compose.yml

Or, you can clone the repository with the command

git clone https://github.com/bmcgonag/quant-ux-docker.git

Docker-Compose Environment Variables

You'll want to make a few modifications to some of the environment variables.

ENVExampleAbout
QUX_PROXY_URLhttp://quant-ux-backend:8080This value should not be changed unless you change the container name for the back end, or the QUX_HTTP_PORT environment variable.
QUX_HTTP_HOSThttp://quant-ux-frontend:8082This value should not be changed unless you change the container name for the front end. DO NOT Change the port number as it is where the container port is set.
QUX_HTTP_PORT8080The port where the backend service runs
QUX_MONGO_DBquantuxThe name of the mongo database to be used by the application
QUX_MONGO_TABLEquantuxThe name of the mongo table prefix to be used by the application
QUX_MAIL_USERadmin@example.comThe username for your smtp server
QUX_MAIL_PASSWORDpa%%W0rD!The password for your smtp server user
QUX_MAIL_HOSTmail.example.com or smtp.example.comThe host url of your smtp server
QUX_JWT_PASSWORDsome-long-string-of-mix-case-chars-and-numsThis is a java web token secret, and should be a very long password. You can use the generator at https://jwt.io/ and select RS256 for a very strong token. Never share this token with anyone.
QUX_IMAGE_FOLDER_USER/qux-imagesA folder path for image storage in the container.
QUX_IMAGE_FOLDER_APP/qux-image-appA folder path for image app storage in the container
TZAmerica/Chicago, Europe/LondonYour local timezone value. You can find your's with this list https://www.php.net/manual/en/timezones.php

Docker Compose Por Mappings

Port HostPort ContainerPort Use
80828082This port is the port you'll use to access the application once it's up and running

Docker Compose Volume Mapping

Host FolderContainer FolderVolume Use
./data/data/dbThis volume is where the mongodb data is stored. It's wise to backup this folder to another system, or external storage in case of catastrophic events.