liuzhen932 revised this gist . Go to revision
1 file changed, 2 insertions
run.sh(file created)
@@ -0,0 +1,2 @@ | |||
1 | + | #!/bin/sh | |
2 | + | docker run --name ripe-atlas --restart always -e RXTXRPT=yes -v ./etc/ripe-atlas:/etc/ripe-atlas -v ./run/ripe-atlas:/run/ripe-atlas -v ./var/spool/ripe-atlas:/var/spool/ripe-atlas --cap-drop=ALL --cap-add=NET_RAW --cap-add=KILL --cap-add=SETUID --cap-add=SETGID --cap-add=CHOWN --cap-add=FOWNER --cap-add=DAC_OVERRIDE --memory-reservation=64m --log-driver=json-file --log-opt max-size=2m --network host jamesits/ripe-atlas:latest |
liuzhen932 revised this gist . Go to revision
1 file changed, 26 insertions
docker-compose.yml(file created)
@@ -0,0 +1,26 @@ | |||
1 | + | services: | |
2 | + | ripe-atlas: | |
3 | + | image: jamesits/ripe-atlas:latest | |
4 | + | restart: always | |
5 | + | environment: | |
6 | + | RXTXRPT: "yes" | |
7 | + | volumes: | |
8 | + | - "./etc/ripe-atlas:/etc/ripe-atlas" | |
9 | + | - "./run/ripe-atlas:/run/ripe-atlas" | |
10 | + | - "./var/spool/ripe-atlas:/var/spool/ripe-atlas" | |
11 | + | cap_drop: | |
12 | + | - ALL | |
13 | + | cap_add: | |
14 | + | - NET_RAW | |
15 | + | - KILL | |
16 | + | - SETUID | |
17 | + | - SETGID | |
18 | + | - CHOWN | |
19 | + | - FOWNER | |
20 | + | - DAC_OVERRIDE | |
21 | + | mem_reservation: 64m | |
22 | + | logging: | |
23 | + | driver: json-file | |
24 | + | options: | |
25 | + | max-size: 2m | |
26 | + | network_mode: "host" |