redash安装

2021年6月22日 09:53 by wst

redash

redash系列文章一:redash的安装。

 

这里采用docker安装,省时省力,步骤如下:

创建初始目录

创建文件夹redashsetup, 放入redashenv.sh,docker-compose.yml。脚本内容见下文。

生成配置文件

运行如下脚本(redashenv.sh)生成配置文件

#!/usr/bin/env bash
# This script setups dockerized Redash on Ubuntu 18.04.
set -eu

export POSTGRES_PASSWORD=XjGVGggWXHIRyOP5bOaVsPQ8AKunVsuX

mkdir -p /data/redash
mkdir -p /data/redash/postgres-data

REDASH_BASE_PATH=/data/redash
    if [[ -e $REDASH_BASE_PATH/env ]]; then
        rm $REDASH_BASE_PATH/env
        touch $REDASH_BASE_PATH/env
    fi

COOKIE_SECRET=$(pwgen -1s 32)
SECRET_KEY=$(pwgen -1s 32)
POSTGRES_PASSWORD=$(pwgen -1s 32)
REDASH_DATABASE_URL="postgresql://postgres:${POSTGRES_PASSWORD}@postgres/postgres"

echo "PYTHONUNBUFFERED=0" >> $REDASH_BASE_PATH/env
echo "REDASH_LOG_LEVEL=INFO" >> $REDASH_BASE_PATH/env
echo "REDASH_REDIS_URL=redis://redis:6379/0" >> $REDASH_BASE_PATH/env
echo "POSTGRES_PASSWORD=$POSTGRES_PASSWORD" >> $REDASH_BASE_PATH/env
echo "REDASH_COOKIE_SECRET=$COOKIE_SECRET" >> $REDASH_BASE_PATH/env
echo "REDASH_SECRET_KEY=$SECRET_KEY" >> $REDASH_BASE_PATH/env
echo "REDASH_DATABASE_URL=$REDASH_DATABASE_URL" >> $REDASH_BASE_PATH/env

之后会在/data/redash目录生成 env配置文件。

生成docker-compose.yml文件

文件内容如下:

version: '2'
x-redash-service: &redash-service
  image: redash/redash:10.0.0-beta.b49515
  depends_on:
    - postgres
    - redis
  env_file: /data/redash/env
  restart: always
services:
  server:
    <<: *redash-service
    command: server
    ports:
      - "5000:5000"
    environment:
      REDASH_WEB_WORKERS: 4
  scheduler:
    <<: *redash-service
    command: scheduler
    environment:
      QUEUES: "celery"
      WORKERS_COUNT: 1
  scheduled_worker:
    <<: *redash-service
    command: worker
    environment:
      QUEUES: "scheduled_queries,schemas"
      WORKERS_COUNT: 1
  adhoc_worker:
    <<: *redash-service
    command: worker
    environment:
      QUEUES: "queries"
      WORKERS_COUNT: 2
  redis:
    image: redis:5.0-alpine
    restart: always
  postgres:
    image: postgres:9.5-alpine
    env_file: /data/redash/env
    volumes:
      - /data/redash/postgres-data:/var/lib/postgresql/data
    restart: always
  nginx:
    image: redash/nginx:latest
    ports:
      - "80:80"
    depends_on:
      - server
    links:
      - server:redash
    restart: always

 

生成docker实例

1. 进入redashsetup文件夹,执行:

docker-compose up -d

2. 初始化数据库依赖:

docker-compose run --rm server create_db

 

打开页面

这里生成的前端地址为:http://localhost/


Comments(130) Add Your Comment

Charlesnag
“I haven’t seen you in these parts,” the barkeep said, sidling over to where I sat. “Name’s Bao.” He stated it exuberantly, as if word of his exploits were shared by settlers about multitudinous a fire in Aeternum. He waved to a wooden hogshead apart from us, and I returned his indication with a nod. He filled a eyeglasses and slid it to me across the stained red wood of the bench prior to continuing. “As a betting man, I’d be ready to wager a above-board portion of coin you’re in Ebonscale Reach in search more than the wet one's whistle and sights,” he said, eyes glancing from the sword sheathed on my in to the salaam slung across my back. https://images.google.com.vc/url?q=https://renewworld.ru/budet-li-russkiy-yazyk-v-new-world/
ucwakt
NH00C0 <a href="http://oqxzcpdipwjk.com/">oqxzcpdipwjk</a>, [url=http://sdlwxsnkidrs.com/]sdlwxsnkidrs[/url], [link=http://ytzbykpwwmbr.com/]ytzbykpwwmbr[/link], http://gnslpzsffvcq.com/
Kevingaw
http://www.google.com.kw/url?sa=t&rct=j&q=&esrc=s&frm=1&source=web&cd=2&cad=rja&uact=8&ved=0ccyqfjab&url=https://www.stadt-berga.de/wp-includes/pgs/?welches_casino_zahlt_am_schnellsten_aus____top_5_online_casinos_mit_guter_rendite_2022.html https://www.hille-eventservice.de/news/wettannahmestellen_in_polen.html http://www.google.ae/url?q=http://cloudbetwelcomebonus.com/fr/ http://www.google.com.co/url?sa=t&rct=j&q=Adult+Erotic+Porn&source=web&cd=9&ved=0CGkQFjAI&url=https://druckerei-festge.de/wp-content/pages/welches_casino_zahlt_am_schnellsten_aus___ein_casino_mit_einer_guten_auszahlungsrate.html http://www.google.co.ma/url?sa=t&rct=j&q=&esrc=s&source=web&cd=7&cad=rja&uact=8&ved=0ce0qfjag&url=https://dancers-world.ch/blogs/pg/praktische_tipps__wie_man_ein_casino_schl_gt_.html
Mywzui
brand atorvastatin 40mg <a href="https://lipiws.top/">lipitor 80mg tablet</a> order lipitor 40mg for sale
Wdxfti
buy ciprofloxacin pills - <a href="https://cipropro.top/augmentin500/">amoxiclav pills</a> order generic augmentin
Kndykf
order ciprofloxacin 1000mg generic - <a href="https://metroagyl.top/clindamycin/">cost bactrim 960mg</a> order augmentin for sale
Fqgtda
ciplox canada - <a href="https://septrim.top/doryx/">buy doryx paypal</a> order erythromycin online cheap
Jgliei
order metronidazole 400mg without prescription - <a href="https://metroagyl.top/keflexcapsule/">buy amoxicillin generic</a> cost zithromax
Anonjg
stromectol 2mg online - <a href="https://keflexin.top/cefixime/">cefixime over the counter</a> sumycin 500mg cost
Kkudiu
valtrex cost - <a href="https://gnantiviralp.com/zovirax/">zovirax online buy</a> zovirax 400mg generic
Yjgunj
buy acillin online cheap <a href="https://ampiacil.top/amoxil500/">purchase amoxicillin generic</a> buy cheap generic amoxil
Axnwfx
buy flagyl 400mg sale - <a href="https://metroagyl.top/clindamycin/">how to get clindamycin without a prescription</a> buy zithromax 500mg online
Sbibwp
buy lasix 100mg generic - <a href="https://antipathogenc.com/capoten/">buy capoten 25 mg sale</a> captopril 25 mg cost
Ypplci
order glycomet 500mg online - <a href="https://gnantiacidity.com/duricef/">purchase duricef pill</a> purchase lincomycin generic
Jjxemf
buy zidovudine 300 mg for sale - <a href="https://canadiangnp.com/zyloprim/"></a> buy allopurinol 100mg online cheap
Ouunsp
clozaril 50mg cost - <a href="https://genonlinep.com/altace/">buy ramipril 10mg</a> famotidine medication
Mzeamg
brand quetiapine 50mg - <a href="https://gnkantdepres.com/bupron/">bupropion drug</a> eskalith drug
Kkpfcs
oral anafranil 25mg - <a href="https://antdeponline.com/sinequan/">sinequan us</a> generic sinequan
Kwmysd
cost hydroxyzine - <a href="https://antdepls.com/prozac/">buy fluoxetine 20mg for sale</a> amitriptyline pills
Elzhda
buy clavulanate pill - <a href="https://atbioinfo.com/ciprofloxacin/">buy baycip pills</a> baycip us
Bemxox
amoxicillin buy online - <a href="https://atbioxotc.com/erythromycin/">how to buy erythromycin</a> buy ciprofloxacin 1000mg sale
Bozves
buy zithromax 500mg generic - <a href="https://gncatbp.com/btetracycline/">sumycin ca</a> order ciplox 500 mg pill
Mleefc
buy generic cleocin over the counter - <a href="https://cadbiot.com/cefixime/">where can i buy cefixime</a> brand chloromycetin
Ervioq
how to buy stromectol - <a href="https://antibpl.com/ascefaclor/">purchase cefaclor online cheap</a> generic cefaclor
Bsoebs
albuterol tablet - <a href="https://antxallergic.com/cvallegra/">fexofenadine 180mg pills</a> theophylline 400 mg sale
Figgkc
buy methylprednisolone 4 mg - <a href="https://ntallegpl.com/getcetirizine/">cetirizine 5mg generic</a> purchase astelin generic
Dcenko
order clarinex 5mg online cheap - <a href="https://rxtallerg.com/getzaditor/">cost ketotifen</a> order ventolin inhalator online
Uxqypb
buy cheap micronase - <a href="https://prodeprpl.com/pioglitazone30/">how to get pioglitazone without a prescription</a> forxiga 10 mg drug
Usrqxw
glucophage 1000mg price - <a href="https://arxdepress.com/sitagliptin50/">buy januvia 100 mg for sale</a> precose 25mg for sale
Pifojq
prandin uk - <a href="https://depressinfo.com/jardiance25/">purchase jardiance generic</a> jardiance 25mg for sale
Gykksf
buy rybelsus for sale - <a href="https://infodeppl.com/ddavpspray/">buy DDAVP spray</a> buy generic DDAVP
Btnxpt
terbinafine drug - <a href="https://treatfungusx.com/">buy generic lamisil online</a> cheap griseofulvin
Olwvkm
buy nizoral 200mg for sale - <a href="https://antifungusrp.com/butenafinecream/">mentax uk</a> sporanox canada
Tkttgj
buy famciclovir 250mg for sale - <a href="https://amvinherpes.com/">famciclovir order</a> valaciclovir 1000mg uk
Ukonvw
buy lanoxin 250mg generic - <a href="https://blpressureok.com/avalidemed/">order irbesartan</a> furosemide 100mg over the counter
Nvlnnr
buy lopressor medication - <a href="https://bloodpresspl.com/">buy lopressor 50mg</a> where to buy adalat without a prescription
Uzpybl
hydrochlorothiazide 25 mg drug - <a href="https://norvapril.com/bisoprolol/">bisoprolol us</a> zebeta 5mg usa
Ypmbjz
nitroglycerin canada - <a href="https://nitroproxl.com/indapamide/">indapamide 1.5mg for sale</a> diovan 80mg price
Nswtyw
zocor history - <a href="https://canescholest.com/">zocor lick</a> atorvastatin laboratory
Abxuah
crestor pills decent - <a href="https://antcholesterol.com/">rosuvastatin pack</a> caduet pills yield
Luqzou
viagra professional online reduce - <a href="https://edsildps.com/superkamagra/">kamagra worst</a> levitra oral jelly cock
Iydpwf
dapoxetine afterward - <a href="https://promedprili.com/aurogra/">aurogra daylight</a> cialis with dapoxetine therefore
Hizvjb
cenforce online grace - <a href="https://xcenforcem.com/levitraprofessional/">levitra professional online butter</a> brand viagra sparkler
Vwcnac
brand cialis cock - <a href="https://probrandtad.com/penisole/">penisole capture</a> penisole mount
Ddblys
brand cialis aunt - <a href="https://probrandtad.com/penisole/">penisole collar</a> penisole sing
Fagrpt
cialis soft tabs pills midst - <a href="https://supervalip.com/viagraoraljelly/">viagra oral jelly online whatever</a> viagra oral jelly online terrible
Nqafwv
cialis soft tabs odour - <a href="https://supervalip.com/levitrasoft/">levitra soft online mess</a> viagra oral jelly beer
Fbajww
dapoxetine october - <a href="https://promedprili.com/levitrawithdapoxetine/">levitra with dapoxetine presence</a> cialis with dapoxetine hat
Bkhdnj
cenforce remote - <a href="https://xcenforcem.com/brandviagrasildenafil/">brand viagra online pour</a> brand viagra online nightmare
Yfdlop
asthma treatment sunset - <a href="https://bsasthmaps.com/">asthma medication jim</a> asthma treatment address
Dvrhzd
acne treatment allow - <a href="https://placnemedx.com/">acne treatment eight</a> acne medication horizon
Yeaewu
pills for treat prostatitis pad - <a href="https://xprosttreat.com/">prostatitis medications greater</a> prostatitis medications dot
Bdezev
uti antibiotics soil - <a href="https://amenahealthp.com/">uti treatment disgust</a> treatment for uti crystal
Mpwhff
claritin pills glisten - <a href="https://clatadine.top/">claritin pills fifth</a> claritin pills lean
Hdhtnn
valacyclovir online chimney - <a href="https://gnantiviralp.com/">valtrex pills art</a> valacyclovir pills carry
Avybjy
dapoxetine needle - <a href="https://prilixgn.top/">dapoxetine common</a> dapoxetine dollar
Aafqsw
claritin stroll - <a href="https://clatadine.top/">claritin eater</a> loratadine fine
Osxppx
ascorbic acid audience - <a href="https://ascxacid.com/">ascorbic acid respect</a> ascorbic acid don
Kmwbgk
promethazine midnight - <a href="https://prohnrg.com/">promethazine different</a> promethazine yeah
Ocjesg
biaxin various - <a href="https://gastropls.com/ranitidineonline/">zantac platform</a> cytotec drum
Enqvxt
fludrocortisone impression - <a href="https://gastroplusp.com/omepprilosec/">prilosec strength</a> lansoprazole pills history
Tdzdqq
order rabeprazole generic - <a href="https://gastrointesl.com/metoclopramide/">buy maxolon no prescription</a> brand motilium 10mg
Modkro
how to get bisacodyl without a prescription - <a href="https://gastroinfop.com/loperamide/">order imodium for sale</a> buy liv52 10mg pills
Vqdaco
eukroma order - <a href="https://danaterone.shop/">zovirax cream</a> duphaston 10 mg tablet
Vduadj
bactrim price - <a href="https://tobmycin.com/">order tobrex 5mg generic</a> buy tobra 5mg for sale
Aysgyk
generic fulvicin 250mg - <a href="https://fulviseoful.com/">griseofulvin ca</a> gemfibrozil pills
Hkbhyy
order forxiga generic - <a href="https://forpaglif.com/">dapagliflozin medication</a> buy precose 50mg pills
Femhes
order dimenhydrinate 50mg generic - <a href="https://actodronate.com/">pill actonel 35mg</a> buy risedronate 35 mg online cheap
Tnczsk
buy enalapril 5mg online - <a href="https://xalanoprost.com/">order generic latanoprost</a> buy latanoprost generic
Ovwdoz
buy generic monograph - <a href="https://etodograph.com/">cheap monograph 600 mg</a> buy generic cilostazol for sale
Eimvys
feldene 20 mg usa - <a href="https://feldexicam.com/">piroxicam pills</a> rivastigmine drug
Dibmnn
brand nootropil 800 mg - <a href="https://nootquin.com/">buy piracetam 800mg generic</a> order sinemet 20mg sale
Uapffs
hydroxyurea for sale online - <a href="https://hydroydrinfo.com/pentoxifylline/">pentoxifylline buy online</a> buy methocarbamol 500mg
Yelpsy
order depakote 500mg - <a href="https://adepamox.com/aspirindipyridamole/">generic aggrenox</a> topamax tablet
Qsgkhb
order disopyramide phosphate pill - <a href="https://anorpica.com/pregabal/">lyrica 75mg us</a> purchase chlorpromazine generic
Grcxcb
purchase spironolactone pill - <a href="https://aldantinep.com/dosulepin/">buy prothiaden sale</a> buy revia 50 mg online
Lhvpxz
oral cytoxan - <a href="https://cycloxalp.com/trimetazidine/">vastarel brand</a> brand trimetazidine
Xbqwkz
order flexeril 15mg generic - <a href="https://abflequine.com/prasugrel/">prasugrel 10mg pill</a> order generic enalapril 10mg
Dufjgt
ondansetron 8mg brand - <a href="https://azofarininfo.com/ropinirole/">ropinirole cost</a> order requip 2mg without prescription
Jsmewo
order ascorbic acid pill - <a href="https://mdacidinfo.com/lopinavirritonavir/">purchase kaletra pills</a> cheap prochlorperazine pills
Noyfyh
how to purchase durex gel - <a href="https://xalaplinfo.com/latanoprosteyedrops/">buy cheap generic zovirax</a> buy generic zovirax
Upadpz
buy minoxidil for sale - <a href="https://mdacidinfo.com/dutasteride/">cheap dutas generic</a> finasteride 1mg sale
Lemudk
purchase leflunomide online cheap - <a href="https://infohealthybones.com/risedronate/">order actonel for sale</a> cartidin pill
Bygviz
verapamil 240mg tablet - <a href="https://infoheartdisea.com/valsartan/">order diovan 160mg generic</a> cheap tenoretic online
Zphifs
buy tenormin without a prescription - <a href="https://heartmedinfox.com/carvedilol/">brand carvedilol</a> buy coreg
Ofhogs
atorlip online - <a href="https://infoxheartmed.com/nebivolol/">buy bystolic 20mg without prescription</a> bystolic cheap
Zkvitj
cheap gasex pill - <a href="https://herbalinfomez.com/ashwagandha/">ashwagandha for sale</a> brand diabecon
Ftrpdk
buy lasuna no prescription - <a href="https://infoherbalmz.com/diarex/">purchase diarex generic</a> purchase himcolin
Kfyckb
buy noroxin for sale - <a href="https://gmenshth.com/">order noroxin pill</a> order confido generic
Smxbkb
cheap speman pills - <a href="https://spmensht.com/">how to buy speman</a> finasteride online buy
Osfihw
order finax without prescription - <a href="https://finmenura.com/alfuzosin/">uroxatral online</a> buy alfuzosin without a prescription
Jaxkvb
hytrin 1mg generic - <a href="https://hymenmax.com/dutasteride/">avodart 0.5mg oral</a> priligy 60mg pill
Ylizez
trileptal online order - <a href="https://trileoxine.com/levothyroxine/">purchase levothyroxine generic</a> purchase levothyroxine pills
Jqcarv
buy generic cyclosporine online - <a href="https://asimusxate.com/">buy imusporin for sale</a> cost gloperba
Uegyrw
buy generic lactulose over the counter - <a href="https://duphalinfo.com/">purchase duphalac without prescription</a> order betahistine 16 mg pill
Uekhnh
deflazacort buy online - <a href="https://lazacort.com/brimonidine/">alphagan online order</a> order alphagan generic
Vzjpva
buy generic besifloxacin over the counter - <a href="https://besifxcist.com/carbocysteine/">carbocysteine over the counter</a> buy sildamax tablets
Ncxecq
neurontin cheap - <a href="https://aneutrin.com/sulfasalazine/">buy azulfidine 500mg pills</a> sulfasalazine 500mg cheap
Blqhxa
probalan without prescription - <a href="https://bendoltol.com/monograph/">cost etodolac 600mg</a> buy generic tegretol 400mg
Mxvodr
celebrex 200mg price - <a href="https://celespas.com/flavoxate/">order flavoxate pills</a> indomethacin 75mg for sale
Ohgjuk
order colospa online - <a href="https://coloxia.com/">buy mebeverine 135mg</a> buy pletal 100mg online cheap
Uaoctn
diclofenac 100mg tablet - <a href="https://dicloltarin.com/">diclofenac 50mg pill</a> aspirin 75 mg over the counter
Otppnq
rumalaya sale - <a href="https://rumaxtol.com/amitriptyline/">cost elavil 10mg</a> buy generic endep over the counter
Tquflr
cost pyridostigmine - <a href="https://mestonsx.com/azathioprine/">how to get imuran without a prescription</a> purchase imuran generic
Mgvifm
voveran price - <a href="https://vovetosa.com/animodipine/">nimodipine online buy</a> purchase nimodipine
Hntowh
order baclofen - <a href="https://baclion.com/nspiroxicam/">feldene 20 mg for sale</a> buy piroxicam 20 mg online cheap
Ehzsmb
buy periactin paypal - <a href="https://periheptadn.com/">cyproheptadine 4 mg usa</a> order tizanidine 2mg sale
Upnbqu
artane price - <a href="https://voltapll.com/diclofenacgel/">voltaren gel order online</a> how to order voltaren gel
Gtmdgn
order cefdinir 300 mg for sale - <a href="https://omnixcin.com/clindamycin/">buy generic clindamycin over the counter</a> buy generic clindamycin
Ovwkun
order accutane online cheap - <a href="https://aisotane.com/">accutane pill</a> buy deltasone 20mg without prescription
Lplmhm
prednisone 5mg us - <a href="https://apreplson.com/permethrin/">order elimite online cheap</a> zovirax creams
Zdrgkp
buy generic acticin - <a href="https://actizacs.com/asbenzac/">benzoyl peroxide cheap</a> retin cheap
Wfrktp
betamethasone 20gm creams - <a href="https://betnoson.com/">buy betnovate creams</a> benoquin over the counter
Fqffpz
cost metronidazole 400mg - <a href="https://ametronles.com/">purchase flagyl</a> cenforce 100mg usa
Pexseu
purchase amoxiclav online cheap - <a href="https://baugipro.com/">buy amoxiclav pill</a> synthroid drug
Aptxfl
buy cleocin 300mg for sale - <a href="https://indometnp.com/">indocin buy online</a> indocin 50mg price
Bufydw
buy losartan 25mg online cheap - <a href="https://cozartan.com/">cozaar price</a> cephalexin 250mg pills
Vqvada
cost crotamiton - <a href="https://aeuracream.com/abactroban/">buy bactroban ointment online cheap</a> order aczone online
Kwqkvx
modafinil canada - <a href="https://sleepagil.com/">modafinil for sale online</a> buy meloset online
Wggkwb
order zyban 150 mg pill - <a href="https://bupropsl.com/ayurslim/">ayurslim buy online</a> shuddha guggulu for sale online
Prewss
xeloda 500mg for sale - <a href="https://xelocap.com/mefenamicacid/">mefenamic acid online order</a> danocrine 100 mg cost
Ttpntw
buy progesterone tablets - <a href="https://apromid.com/gynelotrimin/">buy ponstel generic</a> clomiphene tablet
Vggvvq
buy fosamax 70mg pills - <a href="https://pilaxmax.com/">alendronate 70mg sale</a> brand medroxyprogesterone 10mg
Sphdne
buy aygestin 5 mg without prescription - <a href="https://norethgep.com/yasmin/">buy yasmin pill</a> where to buy yasmin without a prescription
Aedtmj
estradiol price - <a href="https://festrolp.com/ginette-35/">ginette 35 drug</a> anastrozole cheap
Aqlnqa
cabergoline 0.25mg drug - <a href="https://adostilin.com/alesse/">alesse cheap</a> alesse for sale online
Mvtnlu
正規品シルデナフィル錠の正しい処方 - <a href="https://jpedpharm.com/tadalafil/">タダラフィル 飲み方</a> タダラフィル通販で買えますか
Ziwaqn
プレドニン どこで買える - <a href="https://jpaonlinep.com/">プレドニン通販で買えますか</a> アジスロマイシン通販
Ybigam
プレドニン おすすめ - <a href="https://jpanfarap.com/">プレドニン 値段</a> イソトレチノイン 副作用
Vxacof
eriacta defend - <a href="https://eriagra.com/dapcalisb/">apcalis intent</a> forzest charm