From c848b5d729b4807f58d37b8975f6b9ebcb64507d Mon Sep 17 00:00:00 2001 From: Liamohara <50171088+Liamohara@users.noreply.github.com> Date: Wed, 19 Aug 2020 10:55:08 +0100 Subject: [PATCH] Created example docker-compose.yaml docker-compose is a more robust and efficient way to run docker containers than "docker run" so it would be really useful to include an example file. --- docker-compose.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 docker-compose.yaml diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..f3a5f88 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,18 @@ +#Example docker-compose.yaml file +#docker-compose is a more robust and efficient way to run docker containers than "docker run" +#Run "docker-compose up -d" in the same directory as the file to run it +#Periodically run "docker-compose up -d to update it + +version: "3.5" + +services: + squid: + container_name: squid + image: sameersbn/squid:latest + ports: + - "192.168.0.69:3128:3128" + volumes: + - "./squid.conf:/etc/squid/squid.conf" + - "/srv/docker/squid/cache/:/var/spool/squid/" + - "./access.log:/var/log/squid/access.log" + restart: always