Skip to content

Commit 47bd78c

Browse files
committed
Add a docker-compose.yml with a custom network to be able to isolate redis from the container
1 parent 4d23a91 commit 47bd78c

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

docker/rpi/docker-compose.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
version: '3.8'
2+
3+
services:
4+
slips:
5+
image: stratosphereips/slips:latest
6+
container_name: slips
7+
networks:
8+
slips_custom_network:
9+
ipv4_address: 172.20.0.10
10+
command: /bin/bash
11+
ports:
12+
- "55000:55000" # expose web interface to host on port 55000
13+
shm_size: 512m
14+
deploy:
15+
resources:
16+
limits:
17+
memory: 8g
18+
reservations:
19+
memory: 8g
20+
restart: unless-stopped # optional, keeps container alive if crash
21+
22+
networks:
23+
slips_custom_network:
24+
driver: bridge
25+
ipam:
26+
config:
27+
- subnet: 172.20.0.0/16
28+
gateway: 172.20.0.1

0 commit comments

Comments
 (0)