-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name the development docker compose file as docker-compose.yml
- Loading branch information
Showing
4 changed files
with
46 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,9 +20,6 @@ venv | |
|
||
dump.rdb | ||
|
||
# Docker related | ||
docker-compose.yml | ||
|
||
node_modules | ||
.tmp | ||
.sass-cache | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# This is an example configuration for Docker Compose. Make sure to atleast update | ||
# the cookie secret & postgres database password. | ||
# | ||
# Some other recommendations: | ||
# 1. To persist Postgres data, assign it a volume host location. | ||
# 2. Split the worker service to adhoc workers and scheduled queries workers. | ||
version: '2' | ||
services: | ||
server: | ||
build: . | ||
command: server | ||
depends_on: | ||
- postgres | ||
- redis | ||
ports: | ||
- "5000:5000" | ||
environment: | ||
PYTHONUNBUFFERED: 0 | ||
REDASH_LOG_LEVEL: "INFO" | ||
REDASH_REDIS_URL: "redis://redis:6379/0" | ||
REDASH_DATABASE_URL: "postgresql://postgres@postgres/postgres" | ||
REDASH_COOKIE_SECRET: veryverysecret | ||
worker: | ||
build: . | ||
command: scheduler | ||
environment: | ||
PYTHONUNBUFFERED: 0 | ||
REDASH_LOG_LEVEL: "INFO" | ||
REDASH_REDIS_URL: "redis://redis:6379/0" | ||
REDASH_DATABASE_URL: "postgresql://postgres@postgres/postgres" | ||
QUEUES: "queries,scheduled_queries,celery" | ||
WORKERS_COUNT: 2 | ||
redis: | ||
image: redis:2.8 | ||
postgres: | ||
image: postgres:9.3 | ||
# volumes: | ||
# - /opt/postgres-data:/var/lib/postgresql/data | ||
nginx: | ||
image: redash/nginx:latest | ||
ports: | ||
- "80:80" | ||
depends_on: | ||
- server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c39f440
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this commit breaks compatibility with the docker setup script:
redash/setup/docker/create_database.sh
c39f440
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This script was deprecated and removed. There is a new setup guide:
https://redash.io/help-onpremise/dev/docker.html
But I realized now that I forgot to update the regular setup guide. Will do now 👍
c39f440
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I can now see the welcome screen, but when I submit the page it crashes.
From the docker image logs it looks like this problem:
http://stackoverflow.com/questions/26756166/django-celery-beat-dbaccesserror
c39f440
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you share the log?
c39f440
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c39f440
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So strange. Does it get resolved if you rebuild the container?
c39f440
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, maybe the
redash
user can't write to this directory. If it persists after the rebuild it will confirm this.c39f440
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the problem persists after a rebuild. Only the
worker
has this problem, theserver
does not.