forked from Women-Coding-Community/wcc-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (33 loc) · 750 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (33 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
services:
nextjs:
build:
context: .
target: nextjs
env_file:
- .env.local
environment:
- CI=true
ports:
- '3000:3000'
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:3000']
interval: 5s
timeout: 3s
retries: 10
playwright:
build:
context: .
target: playwright
user: '${DOCKER_UID}:${DOCKER_GID}'
env_file:
- .env.local
environment:
- CI=true
- BASE_URL=http://nextjs:3000
depends_on:
nextjs:
condition: service_healthy
volumes:
- ./playwright-tests/screenshots:/app/playwright-tests/screenshots
- ./playwright-report:/app/playwright-report
- ./test-results:/app/test-results