Skip to content

Commit

Permalink
Merge pull request #10 from samply/prevent-volumes
Browse files Browse the repository at this point in the history
Don't write to disk
  • Loading branch information
lablans authored Aug 7, 2023
2 parents 5c86706 + fa951d5 commit c3a7475
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM ubuntu/squid:latest
ADD ./entrypoint.sh ./proxify.sh /docker/
ADD dont_write_to_disk.conf /etc/squid/conf.d/
RUN apt-get update -y && apt-get install -y \
proxychains4 \
&& rm -rf /var/lib/apt/lists/*
Expand Down
5 changes: 4 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ services:
ports:
- "3128:3128"
volumes:
- "./custom-certs:/docker/custom-certs"
- "./custom-certs:/docker/custom-certs:ro"
tmpfs:
- /var/log/squid
- /var/spool/squid
6 changes: 6 additions & 0 deletions dont_write_to_disk.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# This is intended to prevent squid from writing to disk.

coredump_dir /tmp/
access_log none
cache_log /tmp/squid_cache.log
netdb_filename none

0 comments on commit c3a7475

Please sign in to comment.