redash-ui-tests/docker-compose.yml

47 строки
1.2 KiB
YAML

version: '3'
services:
ui-tests:
image: redash-ui-tests
build: .
container_name: ui-tests
environment:
REDASH_SERVER_URL: http://redash:5000
links:
- "server:redash"
server:
image: mozilla/redash:latest
command: dev_server
depends_on:
- postgres
- redis
ports:
- "5000:5000"
environment:
PYTHONUNBUFFERED: 0
REDASH_LOG_LEVEL: "INFO"
REDASH_REDIS_URL: "redis://redis:6379/0"
REDASH_THROTTLE_LOGIN_PATTERN: "100/hour"
REDASH_DATABASE_URL: "postgresql://postgres@postgres/postgres"
REDASH_GOOGLE_CLIENT_ID: "dummy"
REDASH_GOOGLE_CLIENT_SECRET: "dummy"
restart: always
worker:
image: mozilla/redash:latest
command: scheduler
depends_on:
- server
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:3.0-alpine
restart: unless-stopped
postgres:
image: postgres:9.5.6-alpine
command: "postgres -c fsync=off -c full_page_writes=off -c synchronous_commit=OFF"
restart: unless-stopped