forked from aodn/ogcapi-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
28 lines (25 loc) · 1.04 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
version: '3.1'
# Copy from here
# https://git.cepal.org/geo/geo-facility-geonetwork/-/blob/main/docker-compose.yml
# These steps to push image to ECR
# aws ecr get-login-password --region ap-southeast-2 | docker login --username AWS --password-stdin 615645230945.dkr.ecr.ap-southeast-2.amazonaws.com
# docker tag IMAGE_ID 615645230945.dkr.ecr.ap-southeast-2.amazonaws.com/my-repository/xxxx
# docker push 615645230945.dkr.ecr.ap-southeast-2.amazonaws.com/my-repository/xxx
#
# When running in dev env, you should uncomment build . instead of image from ECR
services:
ogcapi:
container_name: ogcapi-java
build: .
#image: 615645230945.dkr.ecr.ap-southeast-2.amazonaws.com/raymond/ogcapi-java
env_file:
- .env
environment:
HOST: ${API_HOST:-http://localhost}
PORT: ${API_CONTAINER_PORT:-8081}
INDEX_NAME: ${INDEX_NAME:-dev_portal_records}
ELASTIC_URL: ${ELASTIC_URL:-https://dev-discovery-index.es.ap-southeast-2.aws.found.io}
ELASTIC_KEY: ${ELASTIC_KEY}
network_mode: "host"
volumes:
- /tmp:/tmp