Skip to content

Commit 1879727

Browse files
committed
improve the docker compose networks
1 parent f4f5d1a commit 1879727

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

test/docker-compose.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ services:
1010
- node_modules:/codecept/node_modules
1111
command: test/rest
1212
depends_on:
13-
json_server:
14-
condition: service_healthy
13+
- json_server
1514

1615
test-acceptance.webdriverio:
1716
build: ..
@@ -73,12 +72,6 @@ services:
7372
command: npm run json-server
7473
ports:
7574
- '8010:8010' # Expose to host
76-
healthcheck:
77-
test: ['CMD', 'curl', '-f', 'http://localhost:8010/health']
78-
interval: 10s # Check every 10 seconds
79-
timeout: 5s # Timeout after 5 seconds
80-
retries: 3 # Retry 3 times before marking as unhealthy
81-
start_period: 10s # Wait 10 seconds before starting health checks
8275
restart: always # Automatically restart the container if it fails or becomes unhealthy
8376

8477
puppeteer-image:

0 commit comments

Comments
 (0)