mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-03-28 06:17:46 +01:00
opensearch security is stupid
This commit is contained in:
parent
da7dae20f9
commit
9bf7d32975
3 changed files with 18 additions and 4 deletions
|
@ -31,7 +31,7 @@ services:
|
|||
- IMAGE_URL_ROOT=/img
|
||||
- BADGE_URL_ROOT=/badge-img
|
||||
- TAG_URL_ROOT=/tag-img
|
||||
- OPENSEARCH_URL=https://admin:admin@opensearch:9200
|
||||
- OPENSEARCH_URL=http://opensearch:9200
|
||||
- REDIS_HOST=valkey
|
||||
- DATABASE_URL=ecto://postgres:postgres@postgres/philomena_dev
|
||||
- CDN_HOST=localhost
|
||||
|
@ -72,10 +72,9 @@ services:
|
|||
image: opensearchproject/opensearch:2.14.0
|
||||
volumes:
|
||||
- opensearch_data:/usr/share/opensearch/data
|
||||
- ./docker/opensearch/opensearch.yml:/usr/share/opensearch/config/opensearch.yml
|
||||
logging:
|
||||
driver: "none"
|
||||
environment:
|
||||
- discovery.type=single-node
|
||||
ulimits:
|
||||
nofile:
|
||||
soft: 65536
|
||||
|
|
|
@ -38,7 +38,7 @@ npm install
|
|||
# if it's not done doing whatever it does yet
|
||||
echo -n "Waiting for OpenSearch"
|
||||
|
||||
until wget --no-check-certificate -qO - https://admin:admin@opensearch:9200; do
|
||||
until wget --no-check-certificate -qO - http://opensearch:9200; do
|
||||
echo -n "."
|
||||
sleep 2
|
||||
done
|
||||
|
|
15
docker/opensearch/opensearch.yml
Normal file
15
docker/opensearch/opensearch.yml
Normal file
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
cluster.name: docker-cluster
|
||||
|
||||
# Bind to all interfaces because we don't know what IP address Docker will assign to us.
|
||||
network.host: 0.0.0.0
|
||||
|
||||
# Setting network.host to a non-loopback address enables the annoying bootstrap checks. "Single-node" mode disables them again.
|
||||
discovery.type: single-node
|
||||
|
||||
# Disable security. We don't need it for dev environment.
|
||||
# Also, whoever thought it's a GREAT IDEA TO ENFORCE SECURITY FEATURES
|
||||
# BY DEFAULT IN A FREAKING DOCKER CONTAINER should be forced to play
|
||||
# the password game every time they would like to create a new account
|
||||
# anywhere whatsoever.
|
||||
plugins.security.disabled: true
|
Loading…
Add table
Reference in a new issue