-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (34 loc) · 1015 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (34 loc) · 1015 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
35
36
37
version: '3.8'
services:
chainflow-app:
image: node:18-alpine
container_name: chainflow-app
working_dir: /app
volumes:
- ./app:/app
- ./.env:/app/.env
- /app/node_modules
ports:
- "8080:8080"
command: >
sh -c "npm install &&
npm run serve -- --skip-lint"
environment:
# Essentiels pour le développement
- NODE_ENV=development
- CHOKIDAR_USEPOLLING=true # Activer le polling pour détecter les changements en temps réel
- ESLINT_NO_DEV_ERRORS=true # Désactiver les erreurs ESLint en dev
# Variables importées directement du fichier .env
- WALLET_PRIVATE_KEY=${WALLET_PRIVATE_KEY}
- DEVMODE=${DEVMODE:-true}
# Optimisations de performances pour Node.js
- NODE_OPTIONS=--max-old-space-size=4096
deploy:
resources:
limits:
cpus: '2'
memory: 4G
reservations:
cpus: '1'
memory: 2G
restart: unless-stopped