forked from kalaksi/docker-tinyproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (51 loc) · 1.87 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
version: '3.6'
services:
tinyproxy:
image: ghcr.io/lizenzfass78851/docker-tinyproxy:latest
# build:
# context: ./
# dockerfile: ./Dockerfile
# You can also use GitLab as an alternative to Docker Hub:
# image: registry.gitlab.com/kalaksi-containers/tinyproxy
restart: unless-stopped
cap_drop:
- ALL
ports:
- 8888:8888
# See tinyproxy.conf for better explanation of these values.
environment:
# Optionally override port tinyproxy is listening on.
# PORT: 8080
# Set to "yes" to disable the Via-header, set to empty to leave it enabled.
DISABLE_VIA_HEADER: 'yes'
# Set this to e.g. tinyproxy.stats to enable stats-page on that address
STAT_HOST: tinyproxy.stats
MAX_CLIENTS: 100
# A space separated list. If not set or is empty, all networks are allowed.
ALLOWED_NETWORKS: 127.0.0.1/8 10.0.0.0/8
# One of Critical, Error, Warning, Notice, Connect, Info
LOG_LEVEL: Notice
# Maximum number of seconds idle connections are allowed to remain open
TIMEOUT: 900
# Username for BasicAuth
# AUTH_USER: ''
# Password for BasicAuth (letters and digits only)
# Prefer secrets-mechanisms instead of environment variables.
# AUTH_PASSWORD: ''
# secrets:
# - auth_password
# # With Alpine base image, this is required, for some reason, or /run/secrets won't get mounted.
# tmpfs:
# - /run
healthcheck:
test: ["CMD", "curl", "-I", "-H", "Host: tinyproxy.stats", "http://localhost:8888"]
interval: 5m
timeout: 10s
retries: 1
# volumes:
# # If not using docker-compose for secrets, you can still manually mount a file containing the password.
# - ./secrets/auth_password:/run/secrets/auth_password:ro
# Secret for AUTH_PASSWORD
# secrets:
# auth_password:
# file: ./secrets/auth_password