diff --git a/.env b/.env index dbd4886..a34956e 100644 --- a/.env +++ b/.env @@ -2,7 +2,7 @@ POSTGRES_USER=postgres POSTGRES_PASSWORD=postgres DATABASE_USERNAME=fusionauth DATABASE_PASSWORD=hkaLBM3RVnyYeYeqE3WI1w2e4Avpy0Wd5O3s3 -ES_JAVA_OPTS="-Xms512m -Xmx512m" +OPENSEARCH_JAVA_OPTS="-Xms512m -Xmx512m" FUSIONAUTH_APP_MEMORY=512M - +FUSIONAUTH_APP_RUNTIME_MODE=development FUSIONAUTH_APP_KICKSTART_FILE=/usr/local/fusionauth/kickstart/kickstart.json diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..53bf957 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "docker" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "weekly" diff --git a/docker-compose.yml b/docker-compose.yml index 9254d48..aa6db45 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ version: '3' services: db: - image: postgres:12.9 + image: postgres:16.0-bookworm environment: PGDATA: /var/lib/postgresql/data/pgdata POSTGRES_USER: ${POSTGRES_USER} @@ -19,26 +19,33 @@ services: - db_data:/var/lib/postgresql/data search: - image: docker.elastic.co/elasticsearch/elasticsearch:7.17.0 + image: opensearchproject/opensearch:2.11.0 environment: cluster.name: fusionauth - bootstrap.memory_lock: "true" discovery.type: single-node - ES_JAVA_OPTS: ${ES_JAVA_OPTS} + node.name: search + plugins.security.disabled: true + bootstrap.memory_lock: true + OPENSEARCH_JAVA_OPTS: ${OPENSEARCH_JAVA_OPTS} healthcheck: - test: [ "CMD", "curl", "--fail" ,"--write-out", "'HTTP %{http_code}'", "--silent", "--output", "/dev/null", "http://localhost:9200/" ] - interval: 5s - timeout: 5s - retries: 5 - networks: - - search_net + interval: 10s + retries: 80 + test: curl --write-out 'HTTP %{http_code}' --fail --silent --output /dev/null http://localhost:9200/ restart: unless-stopped ulimits: memlock: soft: -1 hard: -1 + nofile: + soft: 65536 + hard: 65536 + ports: + - 9200:9200 # REST API + - 9600:9600 # Performance Analyzer volumes: - - search_data:/usr/share/elasticsearch/data + - search_data:/usr/share/opensearch/data + networks: + - search_net fusionauth: image: fusionauth/fusionauth-app:latest @@ -54,12 +61,11 @@ services: DATABASE_USERNAME: ${DATABASE_USERNAME} DATABASE_PASSWORD: ${DATABASE_PASSWORD} FUSIONAUTH_APP_MEMORY: ${FUSIONAUTH_APP_MEMORY} - FUSIONAUTH_APP_RUNTIME_MODE: development + FUSIONAUTH_APP_RUNTIME_MODE: ${FUSIONAUTH_APP_RUNTIME_MODE} FUSIONAUTH_APP_URL: http://fusionauth:9011 SEARCH_SERVERS: http://search:9200 SEARCH_TYPE: elasticsearch FUSIONAUTH_APP_KICKSTART_FILE: ${FUSIONAUTH_APP_KICKSTART_FILE} - networks: - db_net - search_net