Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to deploy Redash Chinese version of Docker

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "how to deploy the Chinese version of Redash Docker". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

one。 Installation instructions

Compared with local installation in Linux environment, Docker installation is easier. The Docker script installation process automatically obtains 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; in addition, building the initial database table structure also needs to be performed manually. After these actions are executed, you can access them by starting the Docker container. As the installation process requires access to foreign servers, it is extremely difficult to install successfully at one time, and it needs to be tried several times.

two。 Construction of basic environment

1) replace the domestic source of APT:

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 domestic source of Docker:

Sudo nano / etc/docker/daemon.json

Enter:

{

"registry-mirrors": ["https://m3dz4myl.mirror.aliyuncs.com"]"

}

5) restart the Docker service:

Sudo systemctl restart docker

6), install Nodejs and npm:

Sudo apt install nodejs npm-y

7) replace npm from domestic sources:

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

8) upgrade the latest Nodejs version:

Sudo npm install n-g & & sudo n stable

three。 Start Docker automatic installation execution

1) download the source code:

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

2), frontend npm dependency package installation (warning can be ignored. If an error is reported, you need to try again several times):

Npm install

3), front-end packaging:

Npm run build

4), Docker installation (if it is not successful, you need to try again several times):

Sudo docker-compose up

four。 Automatic installation post-processing

1) initialize the database table structure:

Sudo docker-compose run-rm server create_db

five。 Start the system & 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

six。 Other instructions

1) for the first time:

Please see "initial configuration Redash Chinese version"

2) follow-up use:

Pay attention to the execution first.

Cd redash

Re-execution

Sudo docker-compose start

To start the docker container.

This is the end of the content of "how to deploy the Chinese version of Docker for Redash". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report