Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Implementation of Arocapi for Language Data Commons
```
npm install
docker compose up
npm run syncdb
npm run db:sync
npm run dev
```

Expand Down
18 changes: 15 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
networks:
ldacapi:
name: ldacapi
driver: bridge

volumes:
postgres_data:
opensearch_data:
Expand All @@ -7,26 +12,31 @@ services:
restart: always
image: postgres:18-alpine
hostname: db
container_name: db
container_name: ldacapi_db
tty: true
environment:
POSTGRES_DB: "${DB_NAME}"
POSTGRES_USER: "${DB_USER}"
POSTGRES_PASSWORD: "${DB_PASSWORD}"
POSTGRES_HOST_AUTH_METHOD: "trust"
PGDATA: /postgresql/data
volumes:
- postgres_data:/postgresql
ports:
- "5432:5432"
networks:
- ldacapi

opensearch:
restart: always
image: opensearchproject/opensearch:3.5.0
hostname: opensearch
container_name: opensearch
container_name: ldacapi_opensearch
tty: true
environment:
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms1g -Xmx1g
- _JAVA_OPTIONS=-XX:UseSVE=0 #this fixes Mac M4 bug
- _JAVA_OPTIONS=${OPENSEARCH_JAVA_OPTIONS} #this fixes Mac M4 bug -XX:UseSVE=0 and WSL2 bug should be empty
#- xpack.security.enabled=false # for elasticsearch
- plugins.security.disabled=true # for opensearch
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=ABCDE1234!
Expand All @@ -36,3 +46,5 @@ services:
ports:
- "9200:9200"
- "9300:9300"
networks:
- ldacapi
Loading