-
Notifications
You must be signed in to change notification settings - Fork 7
/
compose.yaml
50 lines (46 loc) · 1.14 KB
/
compose.yaml
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
services:
postgres:
image: postgres:14.7
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
POSTGRES_DB: helerm
ports:
- "127.0.0.1:5555:5432"
volumes:
- helerm_postgres-data-volume:/var/lib/postgresql/data
container_name: helerm_postgres
elasticsearch:
build:
context: .
dockerfile: .docker/elasticsearch/Dockerfile
ports:
- "127.0.0.1:9200:9200"
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- cluster.routing.allocation.disk.watermark.low=97%
- cluster.routing.allocation.disk.watermark.high=98%
- cluster.routing.allocation.disk.watermark.flood_stage=99%
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
container_name: helerm_elasticsearch
django:
build:
context: .
dockerfile: .docker/django/Dockerfile
target: development
env_file:
- .docker/django/.env
volumes:
- .:/app
ports:
- "8080:8000"
depends_on:
- postgres
- elasticsearch
container_name: helerm
volumes:
helerm_postgres-data-volume:
networks:
default:
name: helsinki