Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (61 loc) · 1.81 KB
/
Copy pathdocker-compose.yml
File metadata and controls
65 lines (61 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
version: '3.4'
services:
elasticsearch:
image: elasticsearch:7.6.0
container_name: elasticsearch
# For development purposes a single node configuration should be sufficient
environment:
- discovery.type=single-node
# Named volume "esdata01" for elasticsearch storage
volumes:
- esdata01:/usr/share/elasticsearch/data
# Tooling for development
# Kibana is a toolstack for elasticsearch administration
# Additionally it provides tools for analysis and index optimization
kibana:
image: kibana:7.3.1
container_name: kibana
# Web GUI should be exposed on port 5601
ports:
- 5601:5601
depends_on:
- elasticsearch
proxy:
build:
context: .
dockerfile: docker/Dockerfile.proxy
ports:
- 8000:80
depends_on:
- os2phonebook-frontend
- os2phonebook-backend
os2phonebook-frontend:
build:
context: .
dockerfile: docker/Dockerfile.frontend
target: builder
command: npm run start
volumes:
- ./os2phonebook_frontend:/app:ro
ports:
- 4200:80
os2phonebook-backend:
build:
context: .
dockerfile: docker/Dockerfile.backend
command: /start-reload.sh
volumes:
- ./os2phonebook_backend/os2phonebook:/app/os2phonebook:ro
ports:
- 9090:80
environment:
OS2PHONEBOOK_COMPANY_NAME: Magenta ApS
OS2PHONEBOOK_DATALOADER_PASSWORD: password1
ELASTICSEARCH_HOST: elasticsearch
ELASTICSEARCH_PORT: 9200
depends_on:
- elasticsearch
volumes:
esdata01:
name: esdata01
driver: local