-
-
Notifications
You must be signed in to change notification settings - Fork 115
/
docker-compose.yml
73 lines (71 loc) · 1.73 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
version: '3.4'
services:
app:
build:
context: ./docker/app
dockerfile: Dockerfile
target: php-${APP_ENV}
user: "1000:1000"
depends_on:
- elasticsearch
- db
volumes:
- /etc/passwd:/etc/passwd:ro
- /etc/group:/etc/group:ro
- ./:/app:rw
- home-dir:/home/user
working_dir: /app
environment:
HOME: /home/user
XDEBUG_CONFIG: ${XDEBUG_CONFIG}
PHP_IDE_CONFIG: ${PHP_IDE_CONFIG}
ELASTICSEARCH_HOST: ${ELASTICSEARCH_HOST}
ELASTICSEARCH_USER: ${ELASTICSEARCH_USER}
ELASTICSEARCH_PASSWORD: ${ELASTICSEARCH_PASSWORD}
DB_HOST: ${DB_HOST}
DB_DATABASE: ${DB_DATABASE}
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
networks:
- default
db:
image: mysql:5.7.22
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
networks:
- default
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.1.3
user: "1000:1000"
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
environment:
- ELASTIC_PASSWORD=${ELASTICSEARCH_PASSWORD}
- discovery.type=single-node
- cluster.routing.allocation.disk.threshold_enabled=false
- bootstrap.memory_lock=true
- action.destructive_requires_name=false
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
ports:
- "9200:9200"
networks:
- default
cerebro:
image: lmenezes/cerebro
ports:
- "9002:9000"
networks:
- default
networks:
default:
driver: bridge
volumes:
elasticsearch-data:
home-dir: