-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
130 lines (125 loc) · 3.53 KB
/
docker-compose.dev.yml
File metadata and controls
130 lines (125 loc) · 3.53 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
version: '3'
services:
api:
image: node:24.13-alpine
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.lodex-net:6379'
WORKERS_URL: 'http://workers.lodex-net:31976'
MONGO_HOST: 'mongo.lodex-net:27017'
MAILER_HOST: 'maildev.lodex-net:1025'
PRECOMPUTED_URL: 'http://api.lodex-net:3000'
CI: ${CI}
networks:
- lodex-net
depends_on:
- mongo
- redis
- workers
- maildev
ports:
- "3000:3000"
- "9229:9229" # Enable Nodemon inspect to attach to Docker Node
command: npm run development:backend
deploy:
resources:
limits:
cpus: '2'
memory: 4G
dev-server: ## Enable hot-reload in development
image: node:24.13-alpine
volumes:
- .:/app
working_dir: /app
environment:
NODE_ENV: development
ports:
- "8080:8080"
- "8081:8081"
- "8082:8082"
- "8083:8083"
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"
networks:
- lodex-net
deploy:
resources:
limits:
cpus: '2'
memory: 1G
redis:
image: redis:6
ports:
- "6379:6379"
networks:
- lodex-net
deploy:
resources:
limits:
cpus: '1'
memory: 1G
workers:
image: node:24.13-alpine
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'
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"
networks:
- lodex-net
command: npm run production:workers
depends_on:
- mongo
deploy:
resources:
limits:
cpus: '2'
memory: 2G
maildev:
image: maildev/maildev
ports:
- "1080:1080"
- "1025:1025"
networks:
- lodex-net
networks:
lodex-net:
name: lodex-net