Browse Source

Added docker-compose.yml for easy apt-cacher-ng startup

jessie
Claus Strasburger 3 years ago
committed by XECDesign
parent
commit
fe45b73987
3 changed files with 17 additions and 0 deletions
  1. +1
    -0
      .gitignore
  2. +6
    -0
      README.md
  3. +10
    -0
      docker-compose.yml

+ 1
- 0
.gitignore View File

@ -5,3 +5,4 @@ postrun.sh
SKIP
.pc
*-pc
apt-cacher-ng/

+ 6
- 0
README.md View File

@ -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

+ 10
- 0
docker-compose.yml View File

@ -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

Loading…
Cancel
Save