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

Recommend

Tutorial on installing Tomcat server under Windows

1 Download and prepare First, we need to download...

Detailed explanation of Promises in JavaScript

Table of contents Basic usage of Promise: 1. Crea...

MySQL 5.7.17 installation and configuration method graphic tutorial (windows10)

MySQL 5.7.17 installation and configuration metho...

Implementation of MySQL index-based stress testing

1. Simulate database data 1-1 Create database and...

Ubuntu Server Installation Tutorial in Vmware

This article shares with you the Ubuntu server ve...

In-depth understanding of Vue's plug-in mechanism and installation details

Preface: When we use Vue, we often use and write ...

Linux Check the installation location of the software simple method

1. Check the software installation path: There is...

Detailed process of zabbix monitoring process and port through agent

Environment Introduction Operating system: centos...

The concept and characteristics of MySQL custom variables

A MySQL custom value is a temporary container for...

Do you know how to use vue-cropper to crop pictures in vue?

Table of contents 1. Installation: 2. Use: 3. Bui...

JavaScript to implement random roll call web page

JavaScript writes a random roll call webpage for ...

Share a Markdown editor based on Ace

I think editors are divided into two categories, ...

Solution to the failure of 6ull to load the Linux driver module

Table of contents 0x01 Failed to load the driver ...

Illustration of the process of using FileZilla to connect to the FTP server

When I first started setting up an ftp server on ...