WIP: staying with http for mvn and npm registry

infrastructure
Richard Attermeyer 2023-11-27 13:09:38 +00:00
parent 38f2c58c54
commit 5e19850af8
1 changed files with 6 additions and 9 deletions

View File

@ -26,13 +26,8 @@ services:
image: traefik:v2.10.5 image: traefik:v2.10.5
container_name: traefik container_name: traefik
restart: always restart: always
ports: # using network mode host allows traefik access to all "docker networks"
# The HTTP port # otherwise traefik needs to be part of any network defined
- "8380:80"
# The HTTPS port
- "8543:443"
# SSH port
- "2222:222/tcp"
network_mode: host network_mode: host
volumes: volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro" - "/var/run/docker.sock:/var/run/docker.sock:ro"
@ -46,6 +41,7 @@ services:
- "traefik.http.routers.dashboard.entrypoints=https" - "traefik.http.routers.dashboard.entrypoints=https"
- "traefik.http.routers.dashboard.service=api@internal" - "traefik.http.routers.dashboard.service=api@internal"
- "traefik.http.services.dashboard.loadbalancer.server.port=8080" - "traefik.http.services.dashboard.loadbalancer.server.port=8080"
- "traefik.http.middlewares.local-ipwhitelist.ipwhitelist.sourcerange=127.0.0.1/32, 192.168.0.0/16, 172.16.0.0/12"
smtp: smtp:
image: "maildev/maildev:2.1.0" image: "maildev/maildev:2.1.0"
@ -177,7 +173,7 @@ services:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.registry.rule=Host(`${REGISTRY_HOST}`)" - "traefik.http.routers.registry.rule=Host(`${REGISTRY_HOST}`)"
- "traefik.http.routers.registry.tls=true" - "traefik.http.routers.registry.tls=true"
- "traefik.http.routers.registry.entrypoints=https,http" - "traefik.http.routers.registry.entrypoints=https"
- "traefik.http.services.registry.loadbalancer.server.port=5000" - "traefik.http.services.registry.loadbalancer.server.port=5000"
ui: ui:
image: joxit/docker-registry-ui:latest image: joxit/docker-registry-ui:latest
@ -216,6 +212,7 @@ services:
- "traefik.http.routers.mvn.rule=Host(`${REPOSILITE_HOST}`)" - "traefik.http.routers.mvn.rule=Host(`${REPOSILITE_HOST}`)"
- "traefik.http.routers.mvn.entrypoints=http" - "traefik.http.routers.mvn.entrypoints=http"
- "traefik.http.services.mvn.loadbalancer.server.port=${REPOSILITE_PORT}" - "traefik.http.services.mvn.loadbalancer.server.port=${REPOSILITE_PORT}"
verdaccio: verdaccio:
image: verdaccio/verdaccio:5 image: verdaccio/verdaccio:5
container_name: verdaccio container_name: verdaccio