-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
64 lines (59 loc) · 1.5 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
services:
app:
build:
context: ${PWD}/Docker
dockerfile: Dockerfile
ports:
- "8000:80"
volumes:
- ${PWD}:/var/www/html
- ./Docker/php/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- ./Docker/php/conf.d/error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini
environment:
- MYSQL_HOST
- MYSQL_USER
- MYSQL_PASSWORD
- DISPLAY_ERRORS
- WAIT_COMMAND
- WAIT_START_CMD
- WAIT_SLEEP
- WAIT_LOOPS
- PHP_EXTENSION_XDEBUG:1
- ENABLE_XDEBUG=1
- XDEBUG_REMOTE_HOST=${DOCKER_HOST_IP:-localhost}
depends_on:
- mysql
- elasticsearch
#command: sh /var/www/html/Docker/wait_to_start.sh
mysql:
image: mysql:5.7
environment:
- MYSQL_ROOT_PASSWORD=root
volumes:
- ${PWD}/Docker/migrations:/docker-entrypoint-initdb.d
adminer:
image: adminer
ports:
- 8080:8080
depends_on:
- mysql
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.7.1
container_name: elasticsearch
environment:
- CLI_JAVA_OPTS=-Xms2g -Xmx2g
- bootstrap.memory_lock=true
- discovery.type=single-node
- xpack.security.enabled=false
- xpack.security.enrollment.enabled=false
ports:
- "9201:9200"
ulimits:
memlock:
soft: -1
hard: -1
healthcheck:
test: ["CMD", "curl", "-f", "http://0.0.0.0:9200"]
interval: 30s
timeout: 10s
retries: 5