-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
86 lines (81 loc) · 1.92 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: '2.4'
services:
atlas-probe:
image: atlas-sw
build:
dockerfile: ./files/Dockerfile
context: .
restart: always
tty: true
# cap_drop:
# - ALL
cap_add:
- SYS_ADMIN
- CAP_NET_RAW #Ping
- CAP_CHOWN #Fix for chown in entrypoint-sh
mem_limit: 256m
security_opt:
- no-new-privileges
pids_limit: 1000 #9 normal use (So maximum of 991 concurrent minitoring operations)
#read_only: true #not yet ready
depends_on:
- ipv6nat-atlas-probe
tmpfs:
- /run
- /var/atlas-probe/run/
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- atlas-key:/var/atlas-probe/etc/
- atlas-status:/var/atlas-probe/status/
networks:
atlas-probe-network:
ipv6nat-atlas-probe:
image: robbertkl/ipv6nat
restart: always
read_only: true
cap_drop:
- ALL
cap_add:
- NET_RAW
- NET_ADMIN
- SYS_MODULE
security_opt:
- no-new-privileges
tmpfs: /run
network_mode: "host"
mem_limit: 256m
pids_limit: 10 #8 normal use
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
watchtower-atlas-probe:
image: containrrr/watchtower
restart: always
mem_limit: 256m
read_only: true
security_opt:
- no-new-privileges
cap_drop:
- ALL
pids_limit: 20 #6 normal use
#TODO: fix for the correct name
command: --interval 3600 --cleanup atlas-probe ipv6nat-atlas-probe watchtower-atlas-probe
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
atlas-probe-network:
driver: bridge
driver_opts:
com.docker.network.bridge.name: br-atlas-probe
enable_ipv6: true
ipam:
driver: default
config:
- subnet: ${IPV4_NETWORK:-10.10.10}.0/30
- subnet: ${IPV6_NETWORK:-1337:1337:1337::/64}
volumes:
#Primary RSA Key
atlas-key:
#Logs
atlas-status:
#Messurements not yet uploaded
atlas-data: