-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
42 lines (39 loc) · 1.12 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
version: "3"
services:
nano_siem:
build:
context: .
dockerfile: docker/Dockerfile
# user: 1000:1000
env_file:
- .env
volumes:
- $PWD/../nano_siem_data/access.log:/var/log/traefik_access.log
- $PWD/../nano_siem_data/GeoIP.conf:/etc/GeoIP.conf
- $PWD/crontab.log:/home/ubuntu/.nano_siem/crontab.log
- /:/mnt/rootfs:ro
- /etc/localtime:/etc/localtime:ro
network_mode: host
nano_siem_db:
image: mariadb:10.10
user: 1000:1000
volumes:
- $PWD/../nano_siem_data/database:/var/lib/mysql
command: --innodb-buffer-pool-size=5G --key-buffer-size=1G
environment:
- MARIADB_USER=NanoSiem
- MARIADB_DATABASE=NanoSiem
- MARIADB_PASSWORD=${MYSQL_PASSWORD}
- MARIADB_RANDOM_ROOT_PASSWORD=yes
ports:
- 127.0.0.1:3306:3306
nano_siem_test_db:
image: mariadb:10.10
user: 1000:1000
volumes:
- $PWD/../nano_siem_data/test_database:/var/lib/mysql
command: --innodb-buffer-pool-size=5G --key-buffer-size=1G
environment:
- MARIADB_ROOT_PASSWORD=${MYSQL_PASSWORD}
ports:
- 127.0.0.1:3307:3306