-
Notifications
You must be signed in to change notification settings - Fork 316
/
local.yml
43 lines (40 loc) · 982 Bytes
/
local.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
version: '3'
volumes:
database_local:
esdata_local:
services:
hellodjango_blog_tutorial_local:
build:
context: .
dockerfile: ./compose/local/Dockerfile
image: hellodjango_blog_tutorial_local
container_name: hellodjango_blog_tutorial_local
working_dir: /app
volumes:
- database_local:/app/database
- .:/app
ports:
- "8000:8000"
command: /start.sh
depends_on:
- elasticsearch_local
elasticsearch_local:
build:
context: .
dockerfile: ./compose/production/elasticsearch/Dockerfile
image: hellodjango_blog_tutorial_elasticsearch_local
container_name: hellodjango_blog_tutorial_elasticsearch_local
volumes:
- esdata_local:/usr/share/elasticsearch/data
ports:
- "9200:9200"
environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
nproc: 65536
nofile:
soft: 65536
hard: 65536