Skip to content

Commit

Permalink
chg: [docker] Improved docker build and added .env file
Browse files Browse the repository at this point in the history
  • Loading branch information
mokaddem committed Nov 20, 2024
1 parent 8263777 commit 5cd2ded
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,32 @@ To update the project, follow these steps:
git submodule update --recursive
```

## Docker
1. Build the image
```bash
docker compose build
```
2. Copy and update the config
```bash
cp template.env .env
vim .env
```
3. [optional] Allow the application to reach services on the host
```bash
# Create a docker override file and add the host as extra_hosts
tee docker-compose.override.yml > /dev/null <<EOF
services:
skillaegis-dashboard:
extra_hosts:
- "host.docker.internal:host-gateway"
EOF
```
```
4. Run the application
```bash
docker compose up
```

# Project Structure

The project is composed of three applications:
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ services:
- SKILLAEGIS_HOST=0.0.0.0
- SKILLAEGIS_PORT=4001
- SKILLAEGIS_EXERCISE_FOLDER=scenarios
- SKILLAEGIS_MISP_URL=https://localhost/
- SKILLAEGIS_MISP_APIKEY=FI4gCRghRZvLVjlLPLTFZ852x2njkkgPSz0zQ3E0
- SKILLAEGIS_MISP_SKIPSSL=true
- SKILLAEGIS_MISP_URL=${SKILLAEGIS_MISP_URL:-https://localhost/}
- SKILLAEGIS_MISP_APIKEY=${SKILLAEGIS_MISP_APIKEY:-FI4gCRghRZvLVjlLPLTFZ852x2njkkgPSz0zQ3E0}
- SKILLAEGIS_MISP_SKIPSSL=${SKILLAEGIS_MISP_SKIPSSL:-1}
volumes:
- ./scenarios:/app/scenarios
ports:
Expand Down
5 changes: 5 additions & 0 deletions template.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

SKILLAEGIS_MISP_URL=https://localhost/
SKILLAEGIS_MISP_APIKEY=FI4gCRghRZvLVjlLPLTFZ852x2njkkgPSz0zQ3E0
SKILLAEGIS_MISP_SKIPSSL=1

0 comments on commit 5cd2ded

Please sign in to comment.