File size: 962 Bytes
8c64ce8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
```yaml
version: '3.8'

services:
  redsputnik:
    image: your-custom-image:latest
    container_name: redsputnik
    restart: unless-stopped
    ports:
      - "8080:8080"
    volumes:
      - ./data:/app/data
      - ./config:/app/config
    environment:
      - RED_MODE_ENABLED=false
      - MAX_FILE_SIZE=10MB
      - RATE_LIMIT=100/1m
    networks:
      - redsputnik-net

  # Additional security containers
  nginx-proxy:
    image: nginx:latest
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - ./nginx/conf.d:/etc/nginx/conf.d
      - ./nginx/certs:/etc/nginx/certs
    depends_on:
      - redsputnik
    networks:
      - redsputnik-net

  fail2ban:
    image: crazymax/fail2ban:latest
    volumes:
      - ./fail2ban/data:/data
      - /var/log:/var/log:ro
    environment:
      - TZ=Europe/Berlin
    cap_add:
      - NET_ADMIN
      - NET_RAW
    networks:
      - redsputnik-net

networks:
  redsputnik-net:
    driver: bridge
```