-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathdocker-compose.yml
49 lines (48 loc) · 1.17 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
version: "3.7"
services:
bluebottle:
build: .
working_dir: /source
command: >
sh -c "python manage.py runserver 0.0.0.0:8000"
container_name: bluebottle
depends_on:
elasticsearch:
condition: service_started
postgres:
condition: service_healthy
ports:
- 8000:8000
restart: always
volumes:
- ./:/source
- ./docker/bluebottle:/opt/data
elasticsearch:
container_name: elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.9
ports:
- 9200:9200
restart: always
mem_limit: 2048m
volumes:
- ./docker/elasticsearch:/var/lib/elasticsearch/data
environment:
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms1024m -Xmx1024m
postgres:
container_name: postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=reef
image: postgis/postgis:latest # postgres + postgis
ports:
- 5432:5432
restart: always
volumes:
- ./docker/postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 3