From e5f8b1252f0a881ddaab34e8fbacca84949d8dfa Mon Sep 17 00:00:00 2001 From: David Siaw Date: Sun, 26 May 2024 12:37:41 +0900 Subject: [PATCH] fix build test compose --- .circleci/compose.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.circleci/compose.yml b/.circleci/compose.yml index bf020617..80e27ebc 100644 --- a/.circleci/compose.yml +++ b/.circleci/compose.yml @@ -30,12 +30,6 @@ services: depends_on: - db - redis - deploy: - restart_policy: - condition: any - delay: 5s - max_attempts: 3 - window: 120s # Rails server # This is the main server. @@ -47,8 +41,6 @@ services: build: .. container_name: rails command: sh -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'" - ports: - - "3000:3000" environment: DATABASE_URL: postgres://postgres:postgres@db REDIS_URL: redis://redis:6379/0 @@ -66,8 +58,11 @@ services: chrome: image: selenium/standalone-chrome-debug container_name: chrome - ports: - - "5900:5900" + healthcheck: + test: ["CMD", "curl", "-v", "http://localhost:4444/wd/hub/status"] + interval: 10s + timeout: 5s + retries: 3 volumes: db_data: active_storage: