-
Notifications
You must be signed in to change notification settings - Fork 55
/
docker-compose.yml
52 lines (50 loc) · 1.37 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
version: '3.0'
services:
es7:
container_name: elasticsearch
build: docker/elasticsearch7/
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./docker/elasticsearch7/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
ports:
- '9200:9200'
- '9300:9300'
environment:
- discovery.type=single-node
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xmx512m -Xms512m"
redis:
image: 'redis:4-alpine'
ports:
- '6379:6379'
app:
# image: divante/storefront-api:latest
build:
context: .
dockerfile: docker/storefront-api/Dockerfile
depends_on:
- es7
- redis
env_file: docker/storefront-api/default.env
environment:
VS_ENV: dev
volumes:
- './config:/var/www/config'
- './ecosystem.json:/var/www/ecosystem.json'
- './migrations:/var/www/migrations'
- './package.json:/var/www/package.json'
- './babel.config.js:/var/www/babel.config.js'
- './tsconfig.json:/var/www/tsconfig.json'
- './nodemon.json:/var/www/nodemon.json'
- './graphql-schema-linter.config.js:/var/www/graphql-schema-linter.config.js'
- './scripts:/var/www/scripts'
- './src:/var/www/src'
- './var:/var/www/var'
tmpfs:
- /var/www/dist
ports:
- '8080:8080'