-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
73 lines (68 loc) · 1.48 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
73
services:
webql:
image: webql:1.0.0
container_name: webql
restart: always
build:
context: ./webql
dockerfile: Dockerfile
networks:
- graphqlastic-net
ports:
- 5173:5173
expose:
- 5173
develop:
watch:
- action: sync
path: ./webql/src
target: ./web/src
ignore:
- ./web/node_modules
- action: rebuild
path: ./web/package.json
volumes:
- ./webql:/webql
- /webql/node_modules
environment:
- WATCHPACK_POLLING=true
- CHOKIDAR_USEPOLLING=true
server:
image: server:1.0.0
container_name: server
restart: always
build:
context: ./server
dockerfile: Dockerfile
ports:
- 5050:5050
env_file:
- .env
networks:
- graphqlastic-net
volumes:
- ./server:/server
environment:
- ELASTICSEARCH_URL=http://elasticsearch:9200
depends_on:
- elasticsearch
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.14.1
container_name: elasticsearch
environment:
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms512m -Xmx512m
ports:
- "9200:9200"
volumes:
- esdata:/usr/share/elasticsearch/data
- ./elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
networks:
- graphqlastic-net
networks:
graphqlastic-net:
driver: bridge
volumes:
nodemodules: {}
esdata:
driver: local