-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
85 lines (76 loc) · 2.17 KB
/
docker-compose.yml
File metadata and controls
85 lines (76 loc) · 2.17 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
services:
#####
# reverse proxy for the whole environment
#####
nginx:
image: nginx:1.23.1-alpine
network_mode: host
volumes:
- ./dev/resources/nginx.conf:/etc/nginx/nginx.conf:ro
- ./dev/data/:/data
#####
# related services from the data-fair stack
#####
simple-directory:
image: ghcr.io/data-fair/simple-directory:master
network_mode: host
depends_on:
- mongo
environment:
- PUBLIC_URL=http://localhost:5600/simple-directory
- OBSERVER_ACTIVE=false
- CIPHER_PASSWORD=dev
- CONTACT=contact@test.com
- MONGO_URL=mongodb://localhost:27017/simple-directory
- PORT=6221
- DEBUG=session
- ADMINS=["superadmin@test.com"]
- STORAGE_TYPE=file
volumes:
- ./dev/resources/users.json:/webapp/data/users.json
- ./dev/resources/organizations.json:/webapp/data/organizations.json
data-fair:
image: ghcr.io/data-fair/data-fair:5
network_mode: host
depends_on:
mongo:
condition: service_started
elasticsearch:
condition: service_healthy
restart: on-failure:10
environment:
- PORT=6222
- DEBUG=files
- MONGO_URL=mongodb://localhost:27017/data-fair
- DIRECTORY_URL=http://localhost:5600/simple-directory
- PUBLIC_URL=http://localhost:5600/data-fair
- WS_PUBLIC_URL=ws://localhost:5600/data-fair
- OBSERVER_ACTIVE=false
- EXTRA_NAV_ITEMS=[{"id":"metrics","iframe":"/metrics/embed/home","basePath":"/metrics","icon":"mdi-chart-bar","title":"Audience","subtitle":"Téléchargements, API"}]
#####
# db and search engine
#####
elasticsearch:
image: ghcr.io/data-fair/elasticsearch:7.x
ports:
- 9200:9200
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms128m -Xmx128m"
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9200"]
timeout: 10s
interval: 2s
retries: 50
mongo:
image: mongo:4.2
ports:
- 27017:27017
volumes:
- mongo-data:/data/db
volumes:
mongo-data:
elasticsearch-data: