mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 01:25:16 +00:00
a1b580bba6
* Update Docker compose version * Experiment with Docker-Composeless CI build * Switch back to Docker compose based tests
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
version: '3'
|
|
services:
|
|
server:
|
|
build: ../
|
|
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_DATABASE_URL: "postgresql://postgres@postgres/postgres"
|
|
worker:
|
|
build: ../
|
|
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
|
|
cypress:
|
|
build:
|
|
context: ../
|
|
dockerfile: Dockerfile.cypress
|
|
depends_on:
|
|
- server
|
|
- worker
|
|
environment:
|
|
CYPRESS_baseUrl: "http://server:5000"
|
|
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
|