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

Added soarca docker compose deployment config #70

Conversation

MaartendeKruijf
Copy link
Collaborator

No description provided.

@MaartendeKruijf MaartendeKruijf linked an issue Mar 17, 2024 that may be closed by this pull request
@MaartendeKruijf MaartendeKruijf self-assigned this Mar 17, 2024
@MaartendeKruijf MaartendeKruijf force-pushed the feature/69-pull-soarcalatest-when-running-docker-compose branch from 086ecec to 993a068 Compare March 18, 2024 08:51
DB_USERNAME: "root"
DB_PASSWORD: "rootpassword"
PLAYBOOK_API_LOG_LEVEL: trace
DATABASE: "false"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be set to true?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep my bad

MQTT_PORT: 1883
ports:
- 127.0.0.1:8080:8080
- 127.0.0.1:1883:1883
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mosquitto uses the same port right?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why does it need to expose port 1883?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops

- target: 1883
published: 1883
protocol: tcp
mode: host
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why host? why not publish for now to internal docker net? Soarca fins would then need to be added to the same net without exposing on host level.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fins need to connect to it as well you won't be able to local forward it or connect to it otherwise. Typically fins are not running in the same context or even a docker container.

image: eclipse-mosquitto
container_name: mosquitto
volumes:
- type: volume
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not specify in the same format as above? e.g. mongodb_data_container:/data/db

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This gives more options to how to mount the volumes

@MaartendeKruijf MaartendeKruijf force-pushed the feature/69-pull-soarcalatest-when-running-docker-compose branch from c962b20 to 1887617 Compare March 18, 2024 14:19
@MaartendeKruijf MaartendeKruijf merged commit d079005 into development Mar 18, 2024
9 checks passed
@MaartendeKruijf MaartendeKruijf deleted the feature/69-pull-soarcalatest-when-running-docker-compose branch March 18, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pull soarca:latest when running docker compose
2 participants