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.

43 lines
888 B
YAML

version: "2"
services:
web:
build: "."
links:
- "db:postgres"
# - "es:es"
ports:
- "8009:80"
volumes:
- ".:/app:rw"
- "./data:/data:rw"
- "./whoosh:/usr/share/whoosh/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: 5120
# hard: 5120
# environment:
# - "ES_JAVA_OPTS=-server -Xms10m -Xmx10m"
# - "ES_HEAP_SIZE=10m"
# - "MAX_LOCKED_MEMORY=5120"
# - 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"