-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
51 lines (42 loc) · 1.6 KB
/
compose.yml
File metadata and controls
51 lines (42 loc) · 1.6 KB
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
services:
squiddish:
build: .
image: ghcr.io/phrontizo/squiddish:latest
container_name: squiddish-proxy
ports:
- "3128:3128"
volumes:
- cache-data:/cache
environment:
# Server settings
# Bind address (0.0.0.0 to accept connections from outside container)
SQUIDDISH_BIND_ADDR: "0.0.0.0:3128"
# Cache settings
# Size units: B, KB, MB, GB, TB (case-insensitive)
# Examples: "1GB", "512MB", "2.5GB", "1024" (plain numbers = bytes)
SQUIDDISH_MEMORY_SIZE: "1GB"
SQUIDDISH_DISK_SIZE: "100GB"
SQUIDDISH_CACHE_DIR: "/cache"
# Time units: s, m, h, d (case-insensitive)
# Examples: "7d", "2h", "5m", "300" (plain numbers = seconds)
SQUIDDISH_TTL: "7d"
# APT settings
SQUIDDISH_APT_ENABLED: "true"
SQUIDDISH_APT_PACKAGE_TTL: "30d" # .deb package files (immutable)
SQUIDDISH_APT_LIST_TTL: "1h" # Package lists (Packages.gz, Release, etc.)
SQUIDDISH_APT_OTHER_TTL: "1d" # Other APT files
# Security settings
SQUIDDISH_MAX_BODY_SIZE: "10GB"
SQUIDDISH_MAX_CONNECTIONS: "1000"
SQUIDDISH_TIMEOUT: "5m"
SQUIDDISH_STRICT_HTTPS: "true"
# Host filtering (comma-separated, leave empty to allow all)
# SQUIDDISH_ALLOWED_HOSTS: "ubuntu.com,debian.org"
# SQUIDDISH_BLOCKED_HOSTS: "malicious.com"
# Logging
RUST_LOG: "squiddish=info"
restart: unless-stopped
# Note: FROM scratch has no shell, so healthcheck is not possible.
# Monitor externally: docker ps (port 3128 open) or docker logs squiddish-proxy
volumes:
cache-data: