-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (51 loc) · 1.11 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
version: '3'
services:
app:
container_name: app
build: .docker/app
working_dir: /var/www/html
volumes:
- ./:/var/www/html
ports:
- '8080:80'
expose:
- '8080'
depends_on:
- mysql
- elasticsearch
links:
- mysql
- elasticsearch
mysql:
container_name: mysql
image: mysql:8
environment:
MYSQL_DATABASE: technical_test_phalcon_app
MYSQL_ROOT_PASSWORD: root
SERVICE_TAGS: dev
SERVICE_NAME: mysql
volumes:
- .docker/mysql/data:/var/lib/mysql
- .docker/mysql/scripts:/scripts
ports:
- '3306:3306'
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.4.0
container_name: elasticsearch
environment:
- xpack.security.enabled=false
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
volumes:
- .docker/elasticsearch/data:/usr/share/elasticsearch/data
- .docker/elasticsearch/scripts:/scripts
ports:
- 9200:9200