Skip to content

Commit 2ac1e77

Browse files
authored
Update docker-compose to comment out unused services
Commented out development and prebuild services to avoid port conflicts and prevent automatic startup.
1 parent 3444dbd commit 2ac1e77

File tree

1 file changed

+18
-65
lines changed

1 file changed

+18
-65
lines changed

docker-compose.yaml

Lines changed: 18 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@ services:
55
context: .
66
dockerfile: Dockerfile
77
target: bolt-ai-production
8+
restart: always
89
ports:
910
- '5173:5173'
1011
env_file:
1112
- '.env'
1213
- '.env.local'
1314
environment:
1415
- NODE_ENV=production
15-
- COMPOSE_PROFILES=production
16-
# No strictly needed but serving as hints for Coolify
16+
# - COMPOSE_PROFILES=production # Plus nécessaire ici
1717
- PORT=5173
18+
# Variables API (Assure-toi qu'elles sont définies dans ton .env ou ton interface Hostinger)
1819
- GROQ_API_KEY=${GROQ_API_KEY}
1920
- HuggingFace_API_KEY=${HuggingFace_API_KEY}
2021
- OPENAI_API_KEY=${OPENAI_API_KEY}
@@ -26,73 +27,25 @@ services:
2627
- TOGETHER_API_KEY=${TOGETHER_API_KEY}
2728
- TOGETHER_API_BASE_URL=${TOGETHER_API_BASE_URL}
2829
- AWS_BEDROCK_CONFIG=${AWS_BEDROCK_CONFIG}
29-
- VITE_LOG_LEVEL=${VITE_LOG_LEVEL:-debug}
30+
- VITE_LOG_LEVEL=${VITE_LOG_LEVEL:-info}
3031
- DEFAULT_NUM_CTX=${DEFAULT_NUM_CTX:-32768}
3132
- RUNNING_IN_DOCKER=true
3233
extra_hosts:
3334
- 'host.docker.internal:host-gateway'
3435
command: pnpm run dockerstart
35-
profiles:
36-
- production
36+
# profiles: - production <-- LIGNE SUPPRIMÉE : Cause de l'erreur
3737

38-
app-dev:
39-
image: bolt-ai:development
40-
build:
41-
context: .
42-
dockerfile: Dockerfile
43-
target: development
44-
env_file:
45-
- '.env'
46-
- '.env.local'
47-
environment:
48-
- NODE_ENV=development
49-
- VITE_HMR_PROTOCOL=ws
50-
- VITE_HMR_HOST=localhost
51-
- VITE_HMR_PORT=5173
52-
- CHOKIDAR_USEPOLLING=true
53-
- WATCHPACK_POLLING=true
54-
- PORT=5173
55-
- GROQ_API_KEY=${GROQ_API_KEY}
56-
- HuggingFace_API_KEY=${HuggingFace_API_KEY}
57-
- OPENAI_API_KEY=${OPENAI_API_KEY}
58-
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
59-
- OPEN_ROUTER_API_KEY=${OPEN_ROUTER_API_KEY}
60-
- XAI_API_KEY=${XAI_API_KEY}
61-
- GOOGLE_GENERATIVE_AI_API_KEY=${GOOGLE_GENERATIVE_AI_API_KEY}
62-
- OLLAMA_API_BASE_URL=${OLLAMA_API_BASE_URL}
63-
- TOGETHER_API_KEY=${TOGETHER_API_KEY}
64-
- TOGETHER_API_BASE_URL=${TOGETHER_API_BASE_URL}
65-
- AWS_BEDROCK_CONFIG=${AWS_BEDROCK_CONFIG}
66-
- VITE_LOG_LEVEL=${VITE_LOG_LEVEL:-debug}
67-
- DEFAULT_NUM_CTX=${DEFAULT_NUM_CTX:-32768}
68-
- RUNNING_IN_DOCKER=true
69-
extra_hosts:
70-
- 'host.docker.internal:host-gateway'
71-
volumes:
72-
- type: bind
73-
source: .
74-
target: /app
75-
consistency: cached
76-
- /app/node_modules
77-
ports:
78-
- '5173:5173'
79-
command: pnpm run dev --host 0.0.0.0
80-
profiles: ['development', 'default']
38+
# Les services app-dev et app-prebuild ont été commentés pour éviter que le builder
39+
# ne tente de les lancer ou qu'il y ait des conflits de port 5173.
40+
41+
# app-dev:
42+
# image: bolt-ai:development
43+
# build:
44+
# context: .
45+
# dockerfile: Dockerfile
46+
# target: development
47+
# ... (reste du service dev masqué)
8148

82-
app-prebuild:
83-
image: ghcr.io/stackblitz-labs/bolt.diy:latest
84-
ports:
85-
- '5173:5173'
86-
environment:
87-
- NODE_ENV=production
88-
- COMPOSE_PROFILES=production
89-
# No strictly needed but serving as hints for Coolify
90-
- PORT=5173
91-
- OLLAMA_API_BASE_URL=http://127.0.0.1:11434
92-
- DEFAULT_NUM_CTX=${DEFAULT_NUM_CTX:-32768}
93-
- RUNNING_IN_DOCKER=true
94-
extra_hosts:
95-
- 'host.docker.internal:host-gateway'
96-
command: pnpm run dockerstart
97-
profiles:
98-
- prebuilt
49+
# app-prebuild:
50+
# image: ghcr.io/stackblitz-labs/bolt.diy:latest
51+
# ... (reste du service prebuild masqué)

0 commit comments

Comments
 (0)