-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
72 lines (66 loc) · 1.34 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
60
61
62
63
64
65
66
67
68
69
70
71
72
version: "3.9"
services:
mongo:
container_name: table_mongo
networks:
- table
image: mongo:4.4
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
volumes:
- './data_mongo:/data/db'
elasticsearch:
container_name: table_es
networks:
- table
image: elasticsearch:7.16.2
environment:
cluster.name: table
node.name: table
discovery.type: "single-node"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
restart: unless-stopped
volumes:
- './data_es:/usr/share/elasticsearch/data'
apiserver:
container_name: table_apiserver
networks:
- table
build: ./backend
restart: unless-stopped
depends_on:
- mongo
- elasticsearch
environment:
MONGO_HOST: mongo
ELASTICSEARCH_HOSTS: '["elasticsearch:9200"]'
webserver:
container_name: table_webserver
networks:
- table
build: ./frontend
restart: unless-stopped
depends_on:
- apiserver
nginx:
container_name: table_nginx
networks:
- table
build: ./
restart: unless-stopped
depends_on:
- apiserver
- webserver
ports:
- "8000:80"
networks:
table:
driver: bridge