-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
36 lines (35 loc) · 1001 Bytes
/
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
# https://testdriven.io/blog/dockerizing-django-with-postgres-gunicorn-and-nginx/
version: '3'
services:
web:
container_name: "Facets-WEB"
build: ./facets
#command: python manage.py runserver 0.0.0.0:8000
command: bash -c "python manage.py migrate; python manage.py runserver 0.0.0.0:8000 --insecure"
volumes:
- ./facets/:/usr/src/facets/
links:
- elasticsearch:es
ports:
- 8000:8000
env_file:
- ./.env.dev
depends_on:
- elasticsearch
elasticsearch:
container_name: "Facets-ES"
image: docker.elastic.co/elasticsearch/elasticsearch:7.16.2
volumes:
- ./data/elastic:/var/lib/elasticsearch/data
environment:
- cluster.name=docker-cluster
- cluster.routing.allocation.disk.threshold_enabled=false
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 9201:9200