From 0a8e51ac7519b333e72f8109ac3043dab411ba59 Mon Sep 17 00:00:00 2001 From: Petr Jasek Date: Thu, 16 May 2024 14:14:31 +0200 Subject: [PATCH] add docker-compose --- client/package.json | 3 ++- docker-compose.yml | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 docker-compose.yml diff --git a/client/package.json b/client/package.json index 9de3b7c..9516245 100644 --- a/client/package.json +++ b/client/package.json @@ -6,7 +6,8 @@ "superdesk-planning": "github:superdesk/superdesk-planning#release/2.7" }, "scripts": { - "build": "npx @superdesk/build-tools build-root-repo ./" + "build": "npx @superdesk/build-tools build-root-repo ./", + "start": "npx grunt server" }, "devDependencies": { "@superdesk/build-tools": "^1.0.18" diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..c286043 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,36 @@ +version: "3.2" +services: + + mongodb: + image: mongo:4 + networks: + - superdesk + expose: + - "27017" + ports: + - "27017:27017" + + redis: + image: redis:3 + networks: + - superdesk + expose: + - "6379" + ports: + - "6379:6379" + + elastic: + image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1 + environment: + - discovery.type=single-node + networks: + - superdesk + expose: + - "9200" + - "9300" + ports: + - "9200:9200" + +networks: + superdesk: + driver: bridge