-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (54 loc) · 1.32 KB
/
docker-compose.yml
File metadata and controls
57 lines (54 loc) · 1.32 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
services:
web:
build:
context: .
dockerfile: Dockerfile
target: development
ports:
- "8080:5173"
volumes:
- .:/app
- /app/node_modules
environment:
- VITE_SUPABASE_URL=${VITE_SUPABASE_URL}
- VITE_SUPABASE_ANON_KEY=${VITE_SUPABASE_ANON_KEY}
- NODE_ENV=development
- ENABLE_MAP_FEATURES=${ENABLE_MAP_FEATURES:-true}
- ENABLE_AI_FEATURES=${ENABLE_AI_FEATURES:-true}
networks:
- app_network
prod:
build:
context: .
dockerfile: Dockerfile
target: production
ports:
- "80:80"
environment:
- NODE_ENV=production
- VITE_SUPABASE_URL=${VITE_SUPABASE_URL}
- VITE_SUPABASE_ANON_KEY=${VITE_SUPABASE_ANON_KEY}
- ENABLE_MAP_FEATURES=${ENABLE_MAP_FEATURES:-true}
- ENABLE_AI_FEATURES=${ENABLE_AI_FEATURES:-true}
networks:
- app_network
restart: unless-stopped
test:
build:
context: .
dockerfile: Dockerfile.test
volumes:
- .:/app
- /app/node_modules
environment:
- NODE_ENV=test
- VITE_SUPABASE_URL=${VITE_SUPABASE_URL}
- VITE_SUPABASE_ANON_KEY=${VITE_SUPABASE_ANON_KEY}
- SERVICE_ROLE_SECRET=${SERVICE_ROLE_SECRET}
networks:
- app_network
depends_on:
- web
networks:
app_network:
driver: bridge