Skip to content

Commit

Permalink
DRY up Cypress docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Omer Lachish committed Sep 3, 2019
1 parent 4b90dae commit 43abac7
Showing 1 changed file with 3 additions and 38 deletions.
41 changes: 3 additions & 38 deletions .circleci/docker-compose.cypress.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3'
version: '3.2'
services:
server:
build: ../
Expand All @@ -15,46 +15,11 @@ services:
REDASH_DATABASE_URL: "postgresql://postgres@postgres/postgres"
REDASH_RATELIMIT_ENABLED: "false"
scheduler:
build: .
command: scheduler
volumes:
- type: bind
source: .
target: /app
depends_on:
- server
environment:
REDASH_REDIS_URL: "redis://redis:6379/0"
build: ../
rq_worker:
build: .
command: dev_rq_worker
deploy:
replicas: 2
volumes:
- type: bind
source: .
target: /app
depends_on:
- server
tty: true
environment:
PYTHONUNBUFFERED: 0
REDASH_LOG_LEVEL: "INFO"
REDASH_REDIS_URL: "redis://redis:6379/0"
REDASH_DATABASE_URL: "postgresql://postgres@postgres/postgres"
QUEUES: "default periodic schemas"
build: ../
worker:
build: ../
command: worker
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"
WORKERS_COUNT: 2
cypress:
build:
context: ../
Expand Down

0 comments on commit 43abac7

Please sign in to comment.