-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (48 loc) · 1.07 KB
/
docker-compose.yml
File metadata and controls
48 lines (48 loc) · 1.07 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
services:
elasticsearch7:
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
ports:
- "9200:9200"
- "9300:9300"
environment:
discovery.type: single-node
ES_JAVA_OPTS: -Xmx256m -Xms256m
ELASTIC_PASSWORD: changeme
xpack.security.enabled: "false"
http.cors.enabled: "true"
http.cors.allow-origin: "*"
healthcheck:
test: curl -f http://elastic:changeme@elasticsearch:8200
interval: 10s
timeout: 1s
volumes:
- esdata:/usr/share/elasticsearch/data
db:
image: mysql:8.0
volumes:
- mysql_data:/var/lib/mysql
env_file:
- .env
ports:
- "3306:3306"
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
timeout: 20s
retries: 10
web:
container_name: rorapiweb
env_file: .env
build: .
#image: rorcommunity/ror-api
ports:
- "9292:80"
- "2222:22"
volumes:
- ./rorapi:/home/app/webapp/rorapi
depends_on:
- elasticsearch7
- db
volumes:
mysql_data:
esdata:
driver: local