LoginSignup
1
3

More than 5 years have passed since last update.

ubuntuにre:dashを構築する手順

Last updated at Posted at 2018-03-01

はじめに

dockerを利用しますのでまずはDockerを利用できるようにします。
UbuntuにDockerとdocker-composeを動かすための手順

re:dashインストール手順

公式:Setting up a Redash instance
のDocker Composeも参考にしてください。

redash on docker

docker-compose実行手順
$ git clone https://github.com/getredash/redash.git
$ cd redash

# docker-compose.ymlを編集しておきます。詳細は下に記載しています。

# Dockerコンテナーイメージ作成
$ docker-compose build
# re:dash setup database
$ docker-compose run --rm server create_db
# re:dash起動
$ docker-compose up -d

docker-compose.production.ymlをベースに作業を進めますが、そのままだと毎回docker-compose -f docker-compose.production.ymlを打たないと行けないのでdocker-compose.ymlにファイル名を変更しましょう。

docker-compose.yml作成

$ cp docker-compose.production.yml docker-compose.yml

docker-compose.ymlの編集

docker-compose.yml
# volumeのコメントをはずす。
postgres:
 image: postgres:9.5.6-alpine
-   # volumes:
-   #  - /opt/postgres-data:/var/lib/postgresql/data
+   volumes:
+     - /opt/postgres-data:/var/lib/postgresql/data

redashの画面が表示されればOKですね。

image.png

1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3