diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 872f02a..eee7294 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -13,6 +13,7 @@ updates: - "/docker/home/mosquitto-mqtt" - "/docker/home/n8n" - "/docker/home/node-red" + - "/docker/infrastructure/apt-cacher-ng" - "/docker/infrastructure/mail/roundcube" - "/docker/infrastructure/mail/stalwart" - "/docker/infrastructure/network/traefik" diff --git a/.swarmcd/stacks.yaml b/.swarmcd/stacks.yaml index ac26cb4..812562b 100644 --- a/.swarmcd/stacks.yaml +++ b/.swarmcd/stacks.yaml @@ -42,6 +42,11 @@ node-red: branch: main compose_file: docker/home/node-red/docker-compose.yml +apt-cacher-ng: + repo: homeprod + branch: main + compose_file: docker/infrastructure/apt-cacher-ng/docker-compose.yml + roundcube: repo: homeprod branch: main diff --git a/docker/infrastructure/apt-cacher-ng/docker-compose.yml b/docker/infrastructure/apt-cacher-ng/docker-compose.yml new file mode 100644 index 0000000..48aa4b9 --- /dev/null +++ b/docker/infrastructure/apt-cacher-ng/docker-compose.yml @@ -0,0 +1,25 @@ +services: + apt-cacher-ng: + image: sameersbn/apt-cacher-ng + container_name: apt-cacher-ng + networks: + - default + - proxy + ports: + - "3142" + labels: + - "traefik.enable=true" + - "traefik.http.routers.apt-cacher-ng.rule=Host(`apt-cacher.lan`)" + - "traefik.http.routers.apt-cacher-ng.entrypoints=http" + - "traefik.http.services.apt-cacher-ng.loadbalancer.server.port=3142" + volumes: + - apt-cacher-ng:/var/cache/apt-cacher-ng + restart: always + +volumes: + apt-cacher-ng: + +networks: + proxy: + name: proxy + external: true