-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.yml
86 lines (79 loc) · 1.85 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: '3.7'
services:
mongodb_container:
image: mongo:latest
container_name: mongo_soarca_stack
environment:
MONGO_INITDB_ROOT_USERNAME: "root"
MONGO_INITDB_ROOT_PASSWORD: "rootpassword"
networks:
- db-net
volumes:
- type: volume
source: mongodb_data_container
target: /data/db
mosquitto:
image: eclipse-mosquitto
container_name: mosquitto
volumes:
- type: volume
source: mosquitto_config
target: /mosquitto/config
- type: volume
source: mosquitto_data
target: /mosquitto/data
- type: volume
source: mosquitto_log
target: /mosquitto/log
networks:
- mqtt-net
ports:
- target: 1883
published: 1883
protocol: tcp
mode: host
- target: 9001
published: 9001
protocol: tcp
mode: host
soarca:
image: cossas/soarca:latest
container_name: soarca_server
environment:
PORT: 8080
SOARCA_ALLOWED_ORIGINS: "*"
GIN_MODE: "release"
MONGODB_URI: "mongodb://mongodb_container:27017"
DATABASE_NAME: "soarca"
DB_USERNAME: "root"
DB_PASSWORD: "rootpassword"
PLAYBOOK_API_LOG_LEVEL: trace
DATABASE: "true"
LOG_GLOBAL_LEVEL: "info"
LOG_MODE: "production"
LOG_FILE_PATH: ""
LOG_FORMAT: "json"
ENABLE_FINS: true
MQTT_BROKER: "mosquitto"
MQTT_PORT: 1883
HTTP_SKIP_CERT_VALIDATION: false
networks:
- db-net
ports:
- 127.0.0.1:8080:8080
depends_on:
- mongodb_container
- mosquitto
networks:
db-net:
mqtt-net:
volumes:
mongodb_data_container:
mosquitto_config:
driver: local # Define the driver and options under the volume name
driver_opts:
type: none
device: ./config
o: bind
mosquitto_data:
mosquitto_log: