This repository was archived by the owner on Sep 14, 2025. It is now read-only.
forked from chatwoot/chatwoot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.override.yml
More file actions
103 lines (100 loc) · 2.58 KB
/
docker-compose.override.yml
File metadata and controls
103 lines (100 loc) · 2.58 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# Docker Compose Override for High-Performance Development
# Optimized for 90GB RAM allocation
services:
rails:
develop:
watch:
- action: rebuild
path: ./Gemfile
target: /app/Gemfile
- action: sync
path: ./app
target: /app/app
- action: sync
path: ./config
target: /app/config
- action: sync
path: ./db
target: /app/db
- action: sync
path: ./lib
target: /app/lib
- action: sync+restart
path: ./config/initializers
target: /app/config/initializers
environment:
- RAILS_ENV=development
- RAILS_MAX_THREADS=20
- WEB_CONCURRENCY=4
- MALLOC_ARENA_MAX=2
- RUBY_GC_HEAP_GROWTH_FACTOR=1.1
- RUBY_GC_MALLOC_LIMIT=200000000
- RUBY_GC_HEAP_INIT_SLOTS=400000
- RUBY_GC_HEAP_FREE_SLOTS=600000
- RAILS_LOG_LEVEL=info
- BOOTSNAP_CACHE_DIR=/tmp/bootsnap
- JEMALLOC_OPTS=narenas:2,background_thread:true,metadata_thp:auto
deploy:
resources:
limits:
cpus: '8'
memory: 16G
reservations:
cpus: '4'
memory: 8G
tmpfs:
- /tmp:size=2G
volumes:
- rails_cache:/app/tmp/cache
- bootsnap_cache:/tmp/bootsnap
- assets_cache:/app/public/assets
sidekiq:
develop:
watch:
- action: sync+restart
path: ./app/jobs
target: /app/app/jobs
- action: sync+restart
path: ./app/workers
target: /app/app/workers
- action: sync
path: ./config
target: /app/config
environment:
- RAILS_MAX_THREADS=10
- MALLOC_ARENA_MAX=2
- SIDEKIQ_CONCURRENCY=10
deploy:
resources:
limits:
cpus: '4'
memory: 8G
reservations:
cpus: '2'
memory: 4G
vite:
develop:
watch:
- action: sync
path: ./app/javascript
target: /app/app/javascript
- action: sync
path: ./app/frontend
target: /app/app/frontend
- action: sync+restart
path: ./vite.config.ts
target: /app/vite.config.ts
- action: sync+restart
path: ./package.json
target: /app/package.json
environment:
- NODE_OPTIONS=--max-old-space-size=8192
deploy:
resources:
limits:
cpus: '2'
memory: 4G
volumes:
rails_cache:
bootsnap_cache:
assets_cache: