You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
827 B
YAML
42 lines
827 B
YAML
version: "2"
|
|
|
|
services:
|
|
web:
|
|
build: "."
|
|
links:
|
|
- "db:postgres"
|
|
- "es:es"
|
|
ports:
|
|
- "8009:80"
|
|
volumes:
|
|
- ".:/app:rw"
|
|
- "./data:/data:rw"
|
|
command: python manage.py runserver 0.0.0.0:80
|
|
env_file: .env-local
|
|
|
|
db:
|
|
image: postgres:9.6-alpine
|
|
environment:
|
|
POSTGRES_DB: "db"
|
|
volumes:
|
|
- ".:/app:rw"
|
|
|
|
es:
|
|
image: elasticsearch:2.4-alpine
|
|
ulimits:
|
|
memlock:
|
|
soft: 10240
|
|
hard: 10240
|
|
environment:
|
|
- "ES_JAVA_OPTS=-server -Xms14m -Xmx14m"
|
|
- "ES_HEAP_SIZE=14m"
|
|
- "MAX_LOCKED_MEMORY=10240"
|
|
- index.number_of_shards=1
|
|
- index.number_of_replicas=0
|
|
- network.tcp.block=1
|
|
- bootstrap.memory_lock=1
|
|
volumes:
|
|
- "./esdata:/usr/share/elasticsearch/data:rw"
|
|
expose:
|
|
- "9200"
|