forked from Inist-CNRS/lodex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.spec.yml
81 lines (76 loc) · 2.12 KB
/
docker-compose.spec.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
version: '3'
services:
api:
build:
context: .
dockerfile: Dockerfile.spec
args:
node_env: e2e
environment:
NODE_ENV: 'e2e'
npm_config_cache: /app/.npm
CYPRESS_CACHE_FOLDER: /app/.cache
EZMASTER_PUBLIC_URL: ${EZMASTER_PUBLIC_URL}
EZMASTER_MONGODB_HOST_PORT: mongo:27017
EXPOSE_TEST_CONTROLLER: 'true'
REDIS_URL: 'redis://redis:6379'
WORKERS_URL: 'http://workers:31976'
links:
- mongo
- redis
- workers
depends_on:
- mongo
- redis
- workers
ports:
- "3000:3000"
volumes:
- ./cypress/mocks/external:/app/external
istex-api:
image: node:18.19-bookworm
volumes:
- .:/app
- ./.cache:/root/.cache
working_dir: /app
environment:
NODE_ENV: 'test'
ports:
- "3011:3011"
command: node --require @babel/register ./cypress/mocks/istexApi.js
mongo:
image: mongo:4.4.24-focal
ports:
- "27017:27017"
redis:
image: redis:6
ports:
- "6379:6379"
workers:
image: node:18.19-bookworm
volumes:
- .:/app
- ./.cache:/root/.cache
working_dir: /app
environment:
npm_config_cache: /app/.npm
CYPRESS_CACHE_FOLDER: /app/.cache
DEBUG: ${DEBUG}
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