-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
95 lines (88 loc) · 2.01 KB
/
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
services:
app:
build:
context: .
dockerfile: ./Dockerfile
args:
uid: "${USER_ID:-${UID:-1000}}"
image: ddhub_prototype_web
# '/start' is the shell script used to run the service
command: /app/start_web.sh
# this volume is used to map the files and folders on the host to the container
# so if we change code on the host, code in the docker container will also be changed
volumes:
- type: bind
source: .
target: /app
bind:
selinux: z
ports:
- 5010:5000
env_file:
- .env
environment:
- FLASK_APP=ddlh
depends_on:
- redis
- elasticsearch
elasticsearch:
image: elasticsearch:8.13.0
ports:
- 9200:9200
- 9300:9300
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- http.cors.enabled=true
- http.cors.allow-origin="http://localhost:8080"
- http.cors.allow-headers=X-Requested-With,Content-Type,Content-Length,Authorization
volumes:
- es_data:/usr/share/elasticsearch/data
redis:
image: redis:7.2
volumes:
- redis_data:/data
environment:
- REDIS_ARGS="--appendonly yes"
celery_worker:
build:
context: .
dockerfile: ./Dockerfile
image: ddhub_celery_worker
command: /app/start_celeryworker.sh
volumes:
- .:/app
env_file:
- .env
environment:
- FLASK_APP=ddlh
depends_on:
- redis
- elasticsearch
flower:
build:
context: .
dockerfile: ./Dockerfile
image: ddhub_celery_flower
command: /app/start_flower.sh
volumes:
- .:/app
env_file:
- .env
environment:
- FLASK_APP=ddlh
ports:
- 5557:5555
depends_on:
- redis
elasticvue:
image: cars10/elasticvue
ports:
- 8080:8080
environment:
ELASTICVUE_CLUSTERS: '[{ "name": "ddlh cluster", "url": "http://localhost:9200" }]'
depends_on:
- elasticsearch
volumes:
es_data:
redis_data: