-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
45 lines (43 loc) · 1.08 KB
/
docker-compose.dev.yml
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
35
36
37
38
39
40
41
42
43
44
45
services:
app:
build:
context: .
dockerfile: Dockerfile.dev
ports:
- "5173:5173"
volumes:
- .:/app
- /app/node_modules
environment:
- NODE_ENV=development
- VITE_DOCKER=true
- VITE_SUPABASE_URL=${VITE_SUPABASE_URL}
- VITE_SUPABASE_ANON_KEY=${VITE_SUPABASE_ANON_KEY}
- VITE_OPENAI_API_KEY=${VITE_OPENAI_API_KEY}
- VITE_DEV_MODE=true
command: npm run dev
networks:
- dev-network
test:
build:
context: .
dockerfile: Dockerfile.test
volumes:
- .:/app
- /app/node_modules
- ./playwright-report:/app/playwright-report
- ./test-results:/app/test-results
environment:
- NODE_ENV=test
- VITE_DOCKER=true
- VITE_SUPABASE_URL=${VITE_SUPABASE_URL}
- VITE_SUPABASE_ANON_KEY=${VITE_SUPABASE_ANON_KEY}
- VITE_OPENAI_API_KEY=${VITE_OPENAI_API_KEY}
- TEST_USER_EMAIL=${TEST_USER_EMAIL}
- TEST_USER_PASSWORD=${TEST_USER_PASSWORD}
command: npm run test:ci
networks:
- dev-network
networks:
dev-network:
driver: bridge