-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose.dev.yml
117 lines (111 loc) · 3.06 KB
/
docker-compose.dev.yml
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
version: '3'
services:
node:
image: node:22.12-bookworm
extra_hosts: # for linux hosts since version 20.10
- host.docker.internal:host-gateway
volumes:
- .:/app
working_dir: /app
environment:
DEBUG: ${DEBUG:-ezs:*,-ezs:debug}
NODE_ENV: ${NODE_ENV}
NODE_OPTIONS: ${NODE_OPTIONS}
http_proxy: ${http_proxy}
https_proxy: ${https_proxy}
no_proxy: 'localhost,127.0.0.1,'
EZMASTER_PUBLIC_URL: ${EZMASTER_PUBLIC_URL}
REDIS_URL: 'redis://redis:6379'
WORKERS_URL: 'http://workers:31976'
CI: ${CI}
links:
- mongo
- redis
- workers
- maildev
depends_on:
- mongo
- redis
- workers
- maildev
ports:
- "3000:3000"
- "9229:9229" # Enable Nodemon inspect to attach to Docker Node
command: npm run development:api
deploy:
resources:
limits:
cpus: '2'
memory: 4G
dev-server: ## Enable hot-reload in development
image: node:22.12-bookworm
volumes:
- .:/app
working_dir: /app
environment:
NODE_ENV: development
ports:
- "8080:8080"
command: npm run development:app
deploy:
resources:
limits:
cpus: '2'
memory: 4G
mongo:
image: mongodb/mongodb-community-server:7.0.9-ubi9
logging:
driver: none
command: --quiet
ports:
- "27017:27017"
deploy:
resources:
limits:
cpus: '2'
memory: 1G
redis:
image: redis:6
ports:
- "6379:6379"
deploy:
resources:
limits:
cpus: '1'
memory: 1G
workers:
image: node:22.12-bookworm
volumes:
- .:/app
working_dir: /app
environment:
DEBUG: ${DEBUG:-ezs:*,-ezs:debug}
NODE_ENV: ${NODE_ENV}
NODE_OPTIONS: ${NODE_OPTIONS}
http_proxy: ${http_proxy}
https_proxy: ${https_proxy}
no_proxy: 'localhost,127.0.0.1'
EZS_TITLE: 'Lodex internals workers'
EZS_DESCRIPTION: 'All scripts through a webserver'
EZS_METRICS: 'true'
EZS_CONCURRENCY: '4'
EZS_CONTINUE_DELAY: '60'
EZS_NSHARDS: '31'
EZS_CACHE: 'false'
ports:
- "31976:31976"
command: npm run production:workers
links:
- mongo
depends_on:
- mongo
deploy:
resources:
limits:
cpus: '2'
memory: 2G
maildev:
image: maildev/maildev
ports:
- "1080:1080"
- "1025:1025"