From ad51b2f82585760dda79fe3aa1f9140fcb1b7e2a Mon Sep 17 00:00:00 2001 From: Ashwini Sukale Date: Tue, 14 Nov 2023 13:27:55 +0530 Subject: [PATCH] =?UTF-8?q?Changes=20to=20run=20lupo=20locally=20which=20w?= =?UTF-8?q?ill=20be=20using=20other=20docker=20services=E2=80=A6=20(#1027)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Changes to run lupo locally which will be using other docker services like elastic search,mysql and memcach * For development have a separate docker compose file * fixed space in yaml * Rename the docker compose file --- docker-compose.local.dev.yml | 47 ++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 docker-compose.local.dev.yml diff --git a/docker-compose.local.dev.yml b/docker-compose.local.dev.yml new file mode 100644 index 000000000..5979cfd53 --- /dev/null +++ b/docker-compose.local.dev.yml @@ -0,0 +1,47 @@ +version: "3" + +services: + memcached: + image: memcached:1.4.31 + networks: + - public + ports: + - "11211:11211" # Expose the memcached port for external access + mysql: + command: --max_allowed_packet=50000000 + environment: + MYSQL_DATABASE: datacite + MYSQL_ALLOW_EMPTY_PASSWORD: "yes" + image: mysql:5.7 + ports: + - "3309:3306" + networks: + - public + elasticsearch: + image: docker.elastic.co/elasticsearch/elasticsearch:7.10.2 + ports: + - "9201:9200" + - "9301:9300" + environment: + discovery.type: single-node + ES_JAVA_OPTS: -Xms512m -Xmx512m + ELASTIC_PASSWORD: changeme + xpack.security.enabled: "false" + http.cors.enabled: "true" + http.cors.allow-origin: "*" + volumes: + - data:/usr/share/elasticsearch/data + networks: + - public + healthcheck: + test: curl -f http://elastic:changeme@elasticsearch:9200 + interval: 10s + timeout: 1s + +volumes: + data: + driver: local + +networks: + public: + name: public \ No newline at end of file