-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose.yml
58 lines (54 loc) · 1.34 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
53
54
55
56
57
58
version: "2.4"
services:
app:
env_file:
- .env
image: chi-councilmatic
container_name: chi-councilmatic
build: .
stdin_open: true
tty: true
ports:
- 8000:8000
depends_on:
postgres:
condition: service_healthy
elasticsearch:
condition: service_started
volumes:
- .:/app
environment:
DJANGO_MANAGEPY_MIGRATE: "False"
DJANGO_DEBUG: "True"
entrypoint: /app/scripts/docker-entrypoint.sh
command: python manage.py runserver 0.0.0.0:8000
postgres:
container_name: chi-councilmatic-postgres
image: mdillon/postgis:11
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
environment:
- POSTGRES_DB=chi_councilmatic
- POSTGRES_PASSWORD=postgres
volumes:
- chi-councilmatic-db-data:/var/lib/postgresql/data
ports:
- 32001:5432
elasticsearch:
image: elasticsearch:7.14.2
container_name: chi-councilmatic-elasticsearch
ports:
- 9200:9200
environment:
- discovery.type=single-node
- logger.org.elasticsearch.discovery=DEBUG
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
mem_limit: 1g
volumes:
- chi-councilmatic-es-data:/usr/share/elasticsearch/data
volumes:
chi-councilmatic-db-data:
chi-councilmatic-es-data: