-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (45 loc) · 1.09 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
version: '3.4'
services:
syslog-server:
image: pysyslog-server:latest
build: .
container_name: pysyslog-server
ports:
- 514:514/udp
environment:
- SYSLOG_FILE=syslog.log
- SYSLOG_LISTEN_ADDRESS=0.0.0.0
- SYSLOG_LISTEN_PORT=514
- SYSLOG_USE_DB=yes # if set to 'no', ignore mongodb configuration
- MONGODB_URI=mongodb://mongoadmin:m0ngoadminPW!@mongo # username/password should be same as below
- MONGODB_DBNAME=syslog
- MONGODB_COLLECTION=logs
- TZ=America/New_York # timezone
volumes:
- ./syslog:/app/syslog
networks:
- frontnet
- backnet
depends_on:
- mongo
mongo:
image: mongo:4.4
container_name: pysyslog-db
ports:
- 27017:27017
logging:
options:
max-size: 1g
environment:
- MONGO_INITDB_ROOT_USERNAME=mongoadmin
- MONGO_INITDB_ROOT_PASSWORD=m0ngoadminPW!
volumes:
- ./mongodb-data:/data/db
networks:
- backnet
networks:
frontnet:
name: pysyslog_frontnet
backnet:
internal: true
name: pysyslog_backnet