-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
77 lines (69 loc) · 2.1 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: "3"
services:
npm:
image: docker.io/almavizca/npm-proxy-cache
container_name: cache_npm
labels:
traefik.enable: "true"
traefik.http.routers.cache-npm.rule: "Host(`cache-npm.$DOMAIN`)"
traefik.http.services.cache-npm.loadbalancer.server.port: "8080"
traefik.http.routers.cache-npm.tls: "false"
traefik.docker.network: lb
networks:
- lb
ports:
- "${SERVICE_IP}:${PORT_npm}:8080"
volumes:
- 'npm:/cache'
pip:
image: docker.io/almavizca/pip-cache
container_name: cache_pip
labels:
traefik.enable: "true"
traefik.http.routers.cache-pip.rule: "Host(`cache-pip.$DOMAIN`)"
traefik.http.services.cache-pip.loadbalancer.server.port: "3141"
traefik.http.routers.cache-pip.tls: "false"
traefik.docker.network: lb
volumes:
- pip:/data
ports:
- "${SERVICE_IP}:${PORT_pip}:3141"
apt:
image: docker.io/sameersbn/apt-cacher-ng
container_name: cache_apt
labels:
traefik.enable: "true"
traefik.http.routers.cache-apt.rule: "Host(`cache-apt.$DOMAIN`)"
traefik.http.services.cache-apt.loadbalancer.server.port: "3142"
traefik.http.routers.cache-apt.tls: "false"
traefik.docker.network: lb
volumes:
- apt:/var/cache/apt-cacher-ng
ports:
- "${SERVICE_IP}:${PORT_apt}:3142"
composer:
image: docker.io/isaaceindhoven/velocita-proxy
container_name: cache_composer
labels:
traefik.enable: "true"
traefik.http.routers.cache-composer.rule: "Host(`cache-composer.$DOMAIN`)"
traefik.http.services.cache-composer.loadbalancer.server.port: "8080"
traefik.http.routers.cache-composer.tls: "false"
traefik.docker.network: lb
# environments:
# MIRROR_PACKAGIST_URL: https://repo.packagist.org
# MIRROR_PACKAGIST_TYPE: composer
# MIRROR_GITHUB_CODELOAD_URL: https://codeload.github.com
volumes:
- composer:/var/cache/velocita
ports:
- "${SERVICE_IP}:${PORT_composer}:8080"
networks:
lb:
name: lb
external: true
volumes:
pip: null
apt: null
npm: null
composer: null