Skip to content

Commit 8cbd016

Browse files
committed
tryout testcontainers
1 parent 9322fae commit 8cbd016

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

test/docker-compose.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,13 @@ services:
6868

6969
json_server:
7070
<<: *test-service
71-
entrypoint: []
72-
command: npm run json-server
73-
expose:
74-
- 8010
71+
image: testcontainers/json-server:latest
72+
environment:
73+
- JSON_SERVER_PORT=8010
74+
ports:
75+
- 8010:8010
76+
volumes:
77+
- ./data/rest/db.json:/data
7578

7679
puppeteer-image:
7780
image: ghcr.io/puppeteer/puppeteer:22.4.1

0 commit comments

Comments
 (0)