forked from jumanjihouse/docker-rsyslog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
67 lines (60 loc) · 1.28 KB
/
docker-compose.yaml
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
---
version: '2.1'
networks:
testnet:
driver: bridge
enable_ipv6: false
ipam:
driver: default
config:
- subnet: 192.168.254.0/24
gateway: 192.168.254.1
services:
rsyslog:
image: rsyslog
build:
context: src/
cap_drop:
- all
cap_add:
- net_bind_service
pids_limit: 20
cpu_shares: 1023
mem_limit: 100m
shm_size: 32m
stdin_open: true
tty: true
rsyslog-compile-options:
image: rsyslog
entrypoint:
- rsyslogd
- -v
rsyslog-version:
image: rsyslog
entrypoint:
- sh
command:
- -c
- "apk policy rsyslog 2>/dev/null | tail -n +2 | head -1 | tr -d ' :'"
logger:
image: alpine:3.12
# yamllint disable-line rule:line-length
command: sh -c "ln -sf /var/run/rsyslog/dev/log /dev/log && logger md5sum is $$md5sum"
volumes_from:
- rsyslog
# https://github.com/jumanjihouse/docker-tftp-hpa
tftpd:
image: jumanjiman/tftp-hpa
volumes_from:
- rsyslog
networks:
testnet:
ipv4_address: 192.168.254.253
tftp:
image: alpine:3.7
build:
context: tftp/
command: tftp -gr /pxelinux.cfg/default -l /tmp/default 192.168.254.253
networks:
testnet:
ipv4_address: 192.168.254.200