Detailed explanation of how to deploy and install the Chinese version of Redash in Docker

Detailed explanation of how to deploy and install the Chinese version of Redash in Docker

1. Installation Instructions Compared with local installation in Linux environment, Docker installation is simpler. The Docker scripted installation process will automatically obtain Redis, postgres, and Python3.7 images to construct the latest background server, worker, and schedule images of Redash. The front-end npm dependency package installation and the latest front-end code packaging are mounted to the server container through volume mapping, so these tasks need to be performed manually once; in addition, building the initial database table structure also needs to be performed manually once. After these actions are completed, start the Docker container and you can access it. Since the installation process requires access to foreign servers, it is extremely difficult to install successfully in one go and requires repeated attempts.
2. Basic environment construction
1) Replace the APT domestic source:

sudo sed -is@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list

2) Update source:

sudo apt update &&sudo apt upgrade -y

3) Install Docker and Docker-Compose

sudo apt install docker docker-compose -y

4) Replace the Docker domestic source:

sudo tee /etc/docker/daemon.json >> EOF
{
"registry-mirrors": ["http://registry.docker-cn.com"]
}
EOF

5) Restart the Docker service:

sudosystemctl restart docker

6) Install Nodejs and npm:

sudo apt install nodejsnpm -y

7) Replace the npm domestic source:

npm config set registry https://registry.npm.taobao.org

8) Upgrade to the latest Nodejs version:

sudo npm install n -g &&sudo n stable

3 Start Docker automatic installation execution
1) Download source code:

git clone https://github.com/dazdata/redash.git && cd redash

2) Docker installation (if unsuccessful, try again several times):

sudo docker-compose up

4 Automatic installation post-processing
1) Install the front-end npm dependency package (warnings can be ignored, if errors are reported, try again several times):

npm install

2) Front-end packaging:

npm run build

3) Initialize the database table structure:

npm run build

5 System startup & initial setup
1) Start the Docker container:

sudo docker-compose start

2) To stop the Docker container:

sudo docker-compose stop

3) Enter the browser:
http://localhost:5000
6 Other Notes
1) First time use:
Please see "Initial Configuration of Redash Chinese Version"
2) Subsequent use:
Note that you must execute first

cd redash

Re-execute

sudo docker-compose start

to start the docker container.

This is the end of this article about the detailed explanation of how to deploy and install the Chinese version of Redash with Docker. For more information about the Chinese version of Redash deployed with Docker, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Detailed explanation of installing redis in docker and starting it as a configuration file
  • Docker installation rocketMQ tutorial (most detailed)
  • Solve the problem that docker installation is completed and reported: bridge-nf-call-iptables is disabled
  • Detailed steps to install docker in 5 minutes

<<:  Some wonderful uses of URL objects in JavaScript

>>:  HTML background image and background color_PowerNode Java Academy

Blog    

Recommend

JavaScript mobile H5 image generation solution explanation

Now there are many WeChat public account operatio...

Detailed explanation of as, question mark and exclamation mark in Typescript

1. The as keyword indicates an assertion In Types...

MySQL 8.0.22 winx64 installation and configuration method graphic tutorial

The database installation tutorial of MySQL-8.0.2...

Explanation of the steps for Tomcat to support https access

How to make tomcat support https access step: (1)...

Vue integrates PDF.js to implement PDF preview and add watermark steps

Table of contents Achieve results Available plugi...

MySQL deduplication methods

MySQL deduplication methods 【Beginner】There are v...

Detailed tutorial on installing Python 3 virtual environment in Ubuntu 20.04

The following are all performed on my virtual mac...

Two ways to connect WeChat mini program to Tencent Maps

I've been writing a WeChat applet recently an...

How to build a deep learning environment running Python in Docker container

Check virtualization in Task Manager, if it is en...

How to detect if the current browser is a headless browser with JavaScript

Table of contents What is a headless browser? Why...

How to use default values ​​for variables in SASS

Variables defined in SASS, the value set later wi...

Analysis of the principle and usage of MySQL custom functions

This article uses examples to illustrate the prin...

MySQL quick recovery solution based on time point

The reason for writing such an article is that on...

How to use native JS to implement touch sliding monitoring events

Preface I wrote a small demo today. There is a pa...

Detailed explanation of the construction and use of Docker private warehouse

The image can be saved on hub.docker.com, but the...