forked from Inist-CNRS/lodex
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.spec.yml
More file actions
71 lines (67 loc) · 1.81 KB
/
docker-compose.spec.yml
File metadata and controls
71 lines (67 loc) · 1.81 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
version: '3'
services:
api:
build:
context: .
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://localhost:6379'
WORKERS_URL: 'http://localhost:31976'
links:
- mongo
- maildev
depends_on:
- mongo
- maildev
ports:
- "3000:3000"
volumes:
- ./cypress/mocks/external:/app/external
deploy:
resources:
limits:
cpus: '2'
memory: 4G
istex-api:
image: node:22.12-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
deploy:
resources:
limits:
cpus: '2'
memory: 2G
mongo:
image: mongodb/mongodb-community-server:7.0.9-ubi9
ports:
- "27017:27017"
deploy:
resources:
limits:
cpus: '2'
memory: 1G
data-computer:
image: cnrsinist/ws-data-computer:2.18.1
extra_hosts: # for linux hosts since version 20.10
- host.docker.internal:host-gateway
links:
- api
maildev:
image: maildev/maildev
ports:
- "1080:1080"
- "1025:1025"