-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (33 loc) · 883 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (33 loc) · 883 Bytes
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
version: '2'
services:
nginx:
image: nginx
container_name: ${COMPOSE_PROJECT_NAME}-nginx
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/nginx-run.template:/etc/nginx/templates/default.conf.template
- ./dist:/usr/share/nginx/html
environment:
- APP_PATH=${APP_PATH}
- PORT=${PORT}
ports:
- ${PORT}:${PORT}
restart: always
esnode1:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:${ES_VERSION}
container_name: ${COMPOSE_PROJECT_NAME}-esnode1
environment:
- cluster.name=cartav-cluster
- bootstrap.memory_lock=true
- path.repo=/home
- "ES_JAVA_OPTS=-Xms${ES_MEM} -Xmx${ES_MEM}"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./${ES_DATA}:/usr/share/elasticsearch/data
networks:
default:
external:
name: ${APP}