@@ -2,7 +2,7 @@ version: '3'
22
33services :
44 db :
5- image : postgres:16.0-bookworm
5+ image : postgres:12.9
66 environment :
77 PGDATA : /var/lib/postgresql/data/pgdata
88 POSTGRES_USER : ${POSTGRES_USER}
@@ -19,33 +19,26 @@ services:
1919 - db_data:/var/lib/postgresql/data
2020
2121 search :
22- image : opensearchproject/opensearch:2.11 .0
22+ image : docker.elastic.co/elasticsearch/elasticsearch:7.17 .0
2323 environment :
2424 cluster.name : fusionauth
25+ bootstrap.memory_lock : " true"
2526 discovery.type : single-node
26- node.name : search
27- plugins.security.disabled : true
28- bootstrap.memory_lock : true
29- OPENSEARCH_JAVA_OPTS : ${OPENSEARCH_JAVA_OPTS}
27+ ES_JAVA_OPTS : ${ES_JAVA_OPTS}
3028 healthcheck :
31- interval : 10s
32- retries : 80
33- test : curl --write-out 'HTTP %{http_code}' --fail --silent --output /dev/null http://localhost:9200/
29+ test : [ "CMD", "curl", "--fail" ,"--write-out", "'HTTP %{http_code}'", "--silent", "--output", "/dev/null", "http://localhost:9200/" ]
30+ interval : 5s
31+ timeout : 5s
32+ retries : 5
33+ networks :
34+ - search_net
3435 restart : unless-stopped
3536 ulimits :
3637 memlock :
3738 soft : -1
3839 hard : -1
39- nofile :
40- soft : 65536
41- hard : 65536
42- ports :
43- - 9200:9200 # REST API
44- - 9600:9600 # Performance Analyzer
4540 volumes :
46- - search_data:/usr/share/opensearch/data
47- networks :
48- - search_net
41+ - search_data:/usr/share/elasticsearch/data
4942
5043 fusionauth :
5144 image : fusionauth/fusionauth-app:latest
@@ -61,11 +54,12 @@ services:
6154 DATABASE_USERNAME : ${DATABASE_USERNAME}
6255 DATABASE_PASSWORD : ${DATABASE_PASSWORD}
6356 FUSIONAUTH_APP_MEMORY : ${FUSIONAUTH_APP_MEMORY}
64- FUSIONAUTH_APP_RUNTIME_MODE : ${FUSIONAUTH_APP_RUNTIME_MODE}
57+ FUSIONAUTH_APP_RUNTIME_MODE : development
6558 FUSIONAUTH_APP_URL : http://fusionauth:9011
6659 SEARCH_SERVERS : http://search:9200
6760 SEARCH_TYPE : elasticsearch
6861 FUSIONAUTH_APP_KICKSTART_FILE : ${FUSIONAUTH_APP_KICKSTART_FILE}
62+
6963 networks :
7064 - db_net
7165 - search_net
0 commit comments