LlamaFinetuneGGUF commited on
Commit
9d82637
·
unverified ·
1 Parent(s): 416f7f9

Update docker-compose.yaml

Browse files
Files changed (1) hide show
  1. docker-compose.yaml +8 -8
docker-compose.yaml CHANGED
@@ -1,5 +1,5 @@
1
  services:
2
- bolt-ai:
3
  image: bolt-ai:production
4
  build:
5
  context: .
@@ -24,12 +24,12 @@ services:
24
  - DEFAULT_NUM_CTX=${DEFAULT_NUM_CTX:-32768}
25
  - RUNNING_IN_DOCKER=true
26
  extra_hosts:
27
- - "host.docker.internal:host-gateway"
28
  command: pnpm run dockerstart
29
  profiles:
30
- - production # This service only runs in the production profile
31
 
32
- bolt-ai-dev:
33
  image: bolt-ai:development
34
  build:
35
  target: bolt-ai-development
@@ -39,7 +39,7 @@ services:
39
  - VITE_HMR_HOST=localhost
40
  - VITE_HMR_PORT=5173
41
  - CHOKIDAR_USEPOLLING=true
42
- - WATCHPACK_POLLING=true
43
  - PORT=5173
44
  - GROQ_API_KEY=${GROQ_API_KEY}
45
  - HuggingFace_API_KEY=${HuggingFace_API_KEY}
@@ -52,7 +52,7 @@ services:
52
  - DEFAULT_NUM_CTX=${DEFAULT_NUM_CTX:-32768}
53
  - RUNNING_IN_DOCKER=true
54
  extra_hosts:
55
- - "host.docker.internal:host-gateway"
56
  volumes:
57
  - type: bind
58
  source: .
@@ -60,6 +60,6 @@ services:
60
  consistency: cached
61
  - /app/node_modules
62
  ports:
63
- - "5173:5173" # Same port, no conflict as only one runs at a time
64
  command: pnpm run dev --host 0.0.0.0
65
- profiles: ["development", "default"] # Make development the default profile
 
1
  services:
2
+ app-prod:
3
  image: bolt-ai:production
4
  build:
5
  context: .
 
24
  - DEFAULT_NUM_CTX=${DEFAULT_NUM_CTX:-32768}
25
  - RUNNING_IN_DOCKER=true
26
  extra_hosts:
27
+ - "host.docker.internal:host-gateway"
28
  command: pnpm run dockerstart
29
  profiles:
30
+ - production
31
 
32
+ app-dev:
33
  image: bolt-ai:development
34
  build:
35
  target: bolt-ai-development
 
39
  - VITE_HMR_HOST=localhost
40
  - VITE_HMR_PORT=5173
41
  - CHOKIDAR_USEPOLLING=true
42
+ - WATCHPACK_POLLING=true
43
  - PORT=5173
44
  - GROQ_API_KEY=${GROQ_API_KEY}
45
  - HuggingFace_API_KEY=${HuggingFace_API_KEY}
 
52
  - DEFAULT_NUM_CTX=${DEFAULT_NUM_CTX:-32768}
53
  - RUNNING_IN_DOCKER=true
54
  extra_hosts:
55
+ - "host.docker.internal:host-gateway"
56
  volumes:
57
  - type: bind
58
  source: .
 
60
  consistency: cached
61
  - /app/node_modules
62
  ports:
63
+ - "5173:5173"
64
  command: pnpm run dev --host 0.0.0.0
65
+ profiles: ["development", "default"]