-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (51 loc) · 1.28 KB
/
docker-compose.yml
File metadata and controls
53 lines (51 loc) · 1.28 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
49
50
51
52
53
version: '3'
services:
php-fpm:
build: ./docker/php
image: enghaw/enghaw-api:php-fpm
restart: on-failure
container_name: enghaw-api-php-fpm
command: php-fpm
links:
- elasticsearch
volumes:
- ./:/enghaw-api
healthcheck:
test: ['CMD', 'sh', '-c', 'netstat -an | fgrep 9000 | fgrep -q LISTEN']
interval: 10s
timeout: 5s
retries: 2
nginx:
build: ./docker/nginx
image: enghaw/enghaw-api:nginx
restart: on-failure
container_name: enghaw-api-nginx
command: nginx -g "daemon off;"
links:
- php-fpm
ports:
- "${DOCKER_NGINX_PORT}:80"
volumes:
- ./:/enghaw-api
healthcheck:
test: ['CMD', 'sh', '-c', 'netstat -an | fgrep 80 | fgrep -q LISTEN']
interval: 10s
timeout: 5s
retries: 2
elasticsearch:
build: ./docker/elasticsearch
image: enghaw/enghaw-api:elasticsearch
container_name: enghaw-api-elasticsearch
environment:
- cluster.name=enghaw
- bootstrap.memory_lock=true
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
ports:
- ${DOCKER_ES_PORT}:9200
volumes:
- ./docker/elasticsearch/esdatadir:/usr/share/elasticsearch/data