-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.dev.yaml
106 lines (103 loc) · 2.32 KB
/
docker-compose.dev.yaml
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
version: "3.4"
services:
controller:
build:
context: .
dockerfile: build/Dockerfile
target: dependencies
command:
- python
- -m
- fact.controller
- --listen-addr
- 0.0.0.0:5123
- --elasticsearch-host
- http://elasticsearch:9200
- --debug
working_dir: /app
networks:
- fact
volumes:
- .:/app
- controller-database:/var/lib/fact
worker:
build:
context: .
dockerfile: build/Dockerfile
target: dependencies
command:
- python
- -m
- fact.worker
- --controller-addr
- controller:5123
- --debug
working_dir: /app
networks:
- fact
volumes:
- .:/app
- worker-data:/var/lib/fact
privileged: true
grpcwebproxy:
build:
context: .
dockerfile: build/Dockerfile.grpcwebproxy
target: production
command: ["--backend_addr=controller:5123", "--server_http_debug_port=5124"]
networks:
- fact
ports:
- 5124:5124
ui:
build:
context: .
dockerfile: build/Dockerfile.ui
target: development-dependencies
command: ["npm", "run", "dev"]
environment:
- NODE_ENV=development
- MANAGEMENT_ENDPOINT=http://localhost:5124
# We're using a child directory so that we don't mount our source code over
# the installed dependencies
working_dir: /app/ui
# Use host networking so that we can use MANAGEMENT_ENDPOINT on both the
# server side and client side
network_mode: host
#ports:
#- 3000:3000
volumes:
- ./ui:/app/ui
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.15.1
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
networks:
- fact
ports:
- 9200:9200
volumes:
- elasticsearch:/usr/share/elasticsearch/data
kibana:
image: docker.elastic.co/kibana/kibana:7.15.1
environment:
- SERVER_NAME=kibana
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
networks:
- fact
ports:
- 5601:5601
networks:
fact:
volumes:
controller-database:
worker-data:
elasticsearch:
# vim: set et ts=2 sw=2: