Skip to content

Commit

Permalink
added Docker compose and env file to the repo
Browse files Browse the repository at this point in the history
  • Loading branch information
SandeepSrinivasan committed Feb 27, 2023
1 parent caf93ba commit be43a9f
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 -
Expand Down
37 changes: 37 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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:
8 changes: 8 additions & 0 deletions docker.env
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit be43a9f

Please sign in to comment.