-
Notifications
You must be signed in to change notification settings - Fork 325
/
docker-compose.yml
53 lines (53 loc) · 1.33 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
services:
app:
build:
context: .
dockerfile: Dockerfile
target: test
cache_from:
- ${DOCKER_IMAGE_CACHE_FROM:-ghcr.io/nrel/api-umbrella:dev-env-main}
entrypoint: /app/docker/dev/docker-entrypoint
command: /app/docker/dev/docker-start
volumes:
- .:/app
- build_cache:/build
environment:
HTTP_PORT: 8200
HTTPS_PORT: 8201
SECRET_KEY: for-development-not-secure
ports:
- "8200:8200"
- "8201:8201"
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
depends_on:
- postgres
- opensearch
postgres:
image: postgres:12
environment:
POSTGRES_PASSWORD: dev_password
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "14011:5432"
opensearch:
build:
context: .
dockerfile: Dockerfile-opensearch
environment:
OPENSEARCH_JAVA_OPTS: "-Xms32m -Xmx256m"
DISABLE_INSTALL_DEMO_CONFIG: "true"
DISABLE_SECURITY_PLUGIN: "true"
DISABLE_SECURITY_DASHBOARDS_PLUGIN: "true"
DISABLE_PERFORMANCE_ANALYZER_AGENT_CLI: "true"
discovery.type: single-node
cluster.routing.allocation.disk.threshold_enabled: "false"
volumes:
- opensearch_data:/usr/share/opensearch/data
ports:
- "14002:9200"
volumes:
build_cache:
postgres_data:
opensearch_data: