-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yaml
60 lines (55 loc) · 1 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
---
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:
tftp-hpa:
image: tftp-hpa
build:
context: src/
volumes_from:
- rsyslogd
networks:
testnet:
ipv4_address: 192.168.254.253
pids_limit: 10
cpu_shares: 1023
mem_limit: 100m
shm_size: 32m
stdin_open: true
tty: true
rsyslogd:
image: jumanjiman/rsyslog
networks:
testnet:
ipv4_address: 192.168.254.252
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
tftp:
image: client
build:
context: client/
networks:
testnet:
version:
image: tftp-hpa
entrypoint:
- sh
command:
- -c
- "apk policy tftp-hpa 2>/dev/null | tail -n +2 | head -1 | tr -d ' :'"