Added docker-compose.yml for easy apt-cacher-ng startup
This commit is contained in:
parent
bab0fe3b0d
commit
fe45b73987
3 changed files with 17 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -5,3 +5,4 @@ postrun.sh
|
|||
SKIP
|
||||
.pc
|
||||
*-pc
|
||||
apt-cacher-ng/
|
||||
|
|
|
@ -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
docker-compose.yml
Normal file
10
docker-compose.yml
Normal 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…
Reference in a new issue