-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (52 loc) · 1.39 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
version: '2.1'
services:
barnyard:
image: toulet/docker-barnyard2
depends_on:
mysql:
condition: service_healthy
volumes:
- /etc/suricata:/etc/suricata:ro
- /var/log/suricata:/var/log/suricata:ro
environment:
- DB_HOST=mysql
- DB_NAME=snorby
- DB_USER=user
- DB_PASS=password
- SENSOR_NAME=suricata
links:
- mysql
snorby:
image: polinux/snorby
depends_on:
mysql:
condition: service_healthy
volumes:
- /etc/suricata/rules:/etc/suricata/rules:ro
ports:
- 8080:8080
- 3000:3000
links:
- mysql
environment:
- DB_ADDRESS=mysql
- DB_NAME=snorby
- DB_USER=user
- DB_PASS=password
mysql:
image: mysql:5.6.26
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_ROOT_PASSWORD=new-password
- MYSQL_DATABASE=snorby
- MYSQL_USER=user
- MYSQL_PASSWORD=password
ports:
- 3306:3306
healthcheck:
test: mysql -h localhost -u root -pnew-password -e 'select * from user' mysql
timeout: 20s
retries: 2
# volumes:
# Preload files for data
# - ../schemaAndSeedData:/docker-entrypoint-initdb.d