-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (55 loc) · 1.18 KB
/
docker-compose.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
services:
elasticsearch:
image: dataesr/es_icu:7.12.0
ports:
- 9200:9200
environment:
- 'discovery.type=single-node'
- 'ES_JAVA_OPTS=-Xms1g -Xmx1g'
healthcheck:
test: curl -s -f elasticsearch:9200/_cat/health > /dev/null || exit 1
timeout: 10s
retries: 5
start_period: 30s
volumes:
- elastic:/usr/share/elasticsearch/data
networks:
- paysage
mongodb:
image: mongo:6.0
ports:
- 27017:27017
restart: always
command: --replSet rs0 --logpath /dev/null --quiet
volumes:
- ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js
- mongo:/data/db
networks:
- paysage
paysage-api:
build: .
command: npm start
restart: always
environment:
- ES_NODE=http://elasticsearch:9200
- ES_PASSWORD=
- ES_USERNAME=
- MONGO_URI=mongodb://mongodb:27017
env_file:
- .env
volumes:
- ./src:/app/src
ports:
- 3000:3000
depends_on:
elasticsearch:
condition: service_healthy
mongodb:
condition: service_started
networks:
- paysage
networks:
paysage: {}
volumes:
mongo:
elastic: