-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-dev.yml
53 lines (47 loc) · 1.27 KB
/
docker-compose-dev.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
version: '2'
services:
nginx:
image: nginx
container_name: cartav-nginx
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/nginx-dev.template:/etc/nginx/templates/default.conf.template
environment:
- APP_PATH=${APP_PATH}
- PORT=${PORT}
ports:
- ${PORT}:${PORT}
restart: always
cartav-dev:
build:
context: .
dockerfile: Dockerfile.dev
args:
proxy: ${http_proxy}
APP_PATH: ${APP_PATH}
image: cartav-dev:latest
container_name: cartav-dev
volumes:
- ./build:/cartav/build
- ./config:/cartav/config
- ./index.html:/cartav/index.html
- ./src:/cartav/src
- ./static:/cartav/static
- ./dist:/cartav/dist/
- ./.eslintrc.js:/cartav/.eslintrc.js
- ./.eslintignore:/cartav/.eslintignore
- ./.babelrc:/cartav/.babelrc
esnode1:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:${ES_VERSION}
container_name: cartav-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