I have an lxc running traefik and other services and frequently it’s running out of space (10Gb)
and the biggest folder is /var/docker/overlay apparently I can’t do anything with it since its managed by docker and any command like `prune` or something else didn’t help.
I figured out that traefik was the biggest container by doing `compose down` and I win 20Gb of storage (yes I increased the storage meanwhwile but it’s keep going to fill it).
So I don’t know what to do I can’t increase further.
Here is my docker-compose in case
```yaml
services:
traefik:
image: traefik:latest # Use the latest Traefik image
container_name: traefik # Name of the container
restart: unless-stopped # Ensures the container restarts if it stops unexpectedly
security_opt:
- no-new-privileges:true # Prevents the container from gaining additional privileges
#network_mode: "host"
networks:
proxy: # Connects to the predefined external network named 'proxy'
ports:
- 80:80 # HTTP port
- 81:81
- 443:443 # HTTPS port
- 444:444
- 2022:2022 # SFTP port
# -- (Optional) Enable Dashboard, don't do in production
- 8080:8080 # Traefik dashboard port
environment:
- CF_API_EMAIL=ccalvez366@gmail.com
- CF_DNS_API_TOKEN=TS_aTX4jh73Hs82Mkuhvtk4iTUl2i3gIgH08QoC1
# - CF_API_KEY=YOU_API_KEY
- TZ=Europe/Paris # Set timezone
volumes:
- /etc/localtime:/etc/localtime:ro # Sync time with the host
- /var/run/docker.sock:/var/run/docker.sock:ro # Allows Traefik to interact with Docker
- /root/Traefik/traefik-config/traefik.yml:/traefik.yml:ro # Traefik configuration file
- /root/Traefik/traefik-config/acme.json:/acme.json # SSL certificate file
- /root/Traefik/traefik-config/rules:/rules:ro # Rule directory
- /root/Traefik/logs:/var/log/traefik/ # Log directory
labels:
- traefik.enable=true # Enable Traefik on this service
- traefik.http.routers.traefik.entrypoints=http # Define HTTP entrypoint
- traefik.http.routers.traefik.rule=Host(`traefik.mydomain.com`) # Host rule for routing
- traefik.http.middlewares.traefik-https-redirect.redirectscheme.scheme=https # Redirect HTTP to HTTPS
#- traefik.http.middlewares.sslheader.headers.customrequestheaders.X-Forwarded-Proto=https # Set forwarded headers for SSL
- traefik.http.routers.traefik.middlewares=traefik-https-redirect # Apply HTTPS redirect middleware
- traefik.http.routers.traefik-secure.entrypoints=https # Secure entrypoint for HTTPS
- traefik.http.routers.traefik-secure.rule=Host(`traefik.mydomain.com`) # Host rule for secure routing
- traefik.http.middlewares.traefik-auth.basicauth.users=admin:$$apr1$$QZyBfA0s$$BXqY5JQHH53vFu4dzSUca. # Basic auth for security traefik for username:pass
- traefik.http.routers.traefik-secure.middlewares=traefik-auth # Apply authentication middleware
- traefik.http.routers.traefik-secure.tls=true # Enable TLS for secure connection
- traefik.http.routers.traefik-secure.tls.certresolver=cloudflare # Use Cloudflare for SSL certificate resolution
- traefik.http.routers.traefik-secure.tls.domains[0].main=mydomain.com # Main domain for SSL certificate
- traefik.http.routers.traefik-secure.tls.domains[0].sans=*.mydomain.com # SANs for SSL certificate
- traefik.http.routers.traefik-secure.service=api@internal # Internal service for Traefik API
networks:
proxy:
name: proxy # Specifies the external network to connect to
external: true # Indicates that the network is external
@bluepuma77 Thank you for your responses, I don't really know when to put a slash or not.
By the way, I think I figured out my issue, when I installed Traefik I was copying some config from various people and I had a middleware which was buffering traffic with Nextcloud.