forked from jonhealy1/gostac-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
79 lines (75 loc) · 1.64 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: '3.8'
services:
es-api:
container_name: es-api
build:
dockerfile: es-api/Dockerfile.dev
restart: always
environment:
- ES_HOST=elasticsearch
- ES_PORT=9200
- ES_USER=username
- ES_PASS=password
ports:
- "6003:6002"
expose:
- "6003"
depends_on:
- elasticsearch
links:
- elasticsearch
volumes:
- ./es-api:/app/es-api
pg-api:
container_name: pg-api
build:
dockerfile: pg-api/Dockerfile.dev
restart: always
environment:
- POSTGRES_USER=username
- POSTGRES_PASSWORD=password
- POSTGRES_DBNAME=postgis
- POSTGRES_PORT=5432
- POSTGRES_HOST=database
ports:
- "6002:6002"
expose:
- "6002"
depends_on:
- database
links:
- database
volumes:
- ./pg-api:/app/pg-api
database:
container_name: postgres
image: ghcr.io/stac-utils/pgstac:v0.6.6
environment:
- POSTGRES_USER=username
- POSTGRES_PASSWORD=password
- POSTGRES_DB=postgis
- PGUSER=username
- PGPASSWORD=password
- PGHOST=localhost
- PGDATABASE=postgis
ports:
- "5433:5432"
command: postgres -N 500
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.15.2
container_name: elasticsearch
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- xpack.security.enabled=false
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata:/usr/share/elasticsearch/data
ports:
- "9200:9200"
volumes:
esdata: