Skip to content

Commit 2e067e4

Browse files
authored
improve the docker compose networks (#4731)
* improve the docker compose networks * improve the docker compose networks * improve the docker compose networks
1 parent ff19db7 commit 2e067e4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/docker-compose.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ services:
7070
<<: *test-service
7171
entrypoint: []
7272
command: npm run json-server
73-
expose:
74-
- 8010
73+
ports:
74+
- '8010:8010' # Expose to host
75+
restart: always # Automatically restart the container if it fails or becomes unhealthy
7576

7677
puppeteer-image:
7778
image: ghcr.io/puppeteer/puppeteer:22.4.1

0 commit comments

Comments
 (0)