Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docker support #15

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM python:3-slim

# Add a work directory
WORKDIR /opt/synapse

# Copy the files from outside directory into the container image
COPY . .

# Install python dependencies
RUN set -eu \
;pip3 install --no-cache --no-cache-dir -r requirements.txt

# Expose the default port 5000
EXPOSE 5000

# Activate our "entrypoint script" app.py
ENTRYPOINT [ "./app.py"]
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ Have a look at the detailed [user guide](docs/user_guide.md), but in short:

While all OS running python3 can be used for Synapse, we recommend the use of Ubuntu.

## Running in Docker

1. Build Image: ```docker build -t synapse .```
2. Run Container: ```docker run -d --name synapse -p 5000:5000 synapse```

You can also mount the config file for easier adjustments
```docker run -d --name synapse -v ${pwd}/conf/synapse.conf:/opt/synapse/conf/synapse.conf -p 5000:5000 synapse```

## Roadmap

* Alert creation from QRadar offense
Expand Down