Skip to content

Commit

Permalink
Added docker-compose.yml for easy apt-cacher-ng startup
Browse files Browse the repository at this point in the history
  • Loading branch information
cfstras authored and XECDesign committed Jul 17, 2017
1 parent bab0fe3 commit fe45b73
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ postrun.sh
SKIP
.pc
*-pc
apt-cacher-ng/
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ The following environment variables are supported:
will not be included in the image, making it safe to use an `apt-cacher` or
similar package for development.

If you have Docker installed, you can set up a local apt caching proxy to
like speed up subsequent builds like this:

docker-compose up -d
echo 'APT_PROXY=http://172.17.0.1:3142' >> config

* `BASE_DIR` (Default: location of `build.sh`)

**CAUTION**: Currently, changing this value will probably break build.sh
Expand Down
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: '2'

services:
apt-cacher-ng:
restart: unless-stopped
image: sameersbn/apt-cacher-ng:latest
ports:
- "3142:3142"
volumes:
- ./apt-cacher-ng:/var/cache/apt-cacher-ng

0 comments on commit fe45b73

Please sign in to comment.