From be43a9fb05946fffd2af6803e2118f1350dc073d Mon Sep 17 00:00:00 2001 From: Sandeep Srinivasan <42356657+SandeepSrinivasan@users.noreply.github.com> Date: Tue, 28 Feb 2023 02:18:03 +0530 Subject: [PATCH] added Docker compose and env file to the repo --- README.md | 4 ++-- docker-compose.yml | 37 +++++++++++++++++++++++++++++++++++++ docker.env | 8 ++++++++ 3 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 docker-compose.yml create mode 100644 docker.env diff --git a/README.md b/README.md index 2b09396bf2..b68759a44d 100644 --- a/README.md +++ b/README.md @@ -37,8 +37,8 @@ Run this script to create Akto at ~/akto and run the docker containers. You'll n ### Directly using docker-compose (best option for Windows - works for any machine which has Docker installed) Run the following commands to install Akto. You'll need to have curl and Docker installed in order to run the container.. -1. Create an installation directory and `cd` to it. -2. Download these 2 files [docker-compose.yml](https://raw.githubusercontent.com/akto-api-security/infra/feature/self_hosting/docker-compose.yml) [docker.env](https://raw.githubusercontent.com/akto-api-security/infra/feature/self_hosting/docker.env) +1. Clone the Akto repo by using this command `git clone https://github.com/akto-api-security/akto.git` +2. Go to the cloned directory `cd akto` 3. Run `docker-compose up -d` #### Note - if you are setting this up on an instance in your own Cloud (AWS/GCP/Heroku etc.), please ensure the following for good security practices - diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000000..17fa9316c5 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,37 @@ +version: '3.3' + +services: + + mongo: + container_name: mongo + image: mongo:6.0.1 + restart: on-failure:10 + volumes: + - mongodata:/data/db + ports: + - "27017:27017" + + akto-api-security-dashboard: + image: aktosecurity/akto-api-security-dashboard:local + env_file: ./docker.env + restart: always + ports: + - "9090:8080" + depends_on: + - mongo + + akto-api-security-testing: + image: aktosecurity/akto-api-testing:local + env_file: ./docker.env + depends_on: + - mongo + restart: always + + akto-puppeteer-replay: + image: aktosecurity/akto-puppeteer-replay:latest + ports: + - "3000:3000" + restart: always + +volumes: + mongodata: \ No newline at end of file diff --git a/docker.env b/docker.env new file mode 100644 index 0000000000..f9e4d9cd4d --- /dev/null +++ b/docker.env @@ -0,0 +1,8 @@ +AKTO_MONGO_CONN=mongodb://mongo:27017/admini +AKTO_CONFIG_NAME=staging +AKTO_ACCOUNT_NAME=Helios +AKTO_TRAFFIC_BATCH_SIZE=100 +AKTO_TRAFFIC_BATCH_TIME_SECS=10 +DASHBOARD_MODE=local_deploy +USE_HOSTNAME=true +PUPPETEER_REPLAY_SERVICE_URL=http://akto-puppeteer-replay:3000 \ No newline at end of file