Skip to content

Commit

Permalink
feat: move verdaccio to Traefik configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
aldy505 committed Mar 31, 2024
1 parent 4d9933f commit ae9e77e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 38 deletions.
36 changes: 0 additions & 36 deletions verdaccio/Caddyfile

This file was deleted.

27 changes: 25 additions & 2 deletions verdaccio/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,31 @@
services:
verdaccio:
image: verdaccio/verdaccio:5
ports:
- 127.0.0.1:4873:4873
volumes:
- verdaccio-storage:/verdaccio/storage
labels:
- "traefik.enable=true"
- "traefik.http.routers.verdaccio.entrypoints=web,websecure"
- "traefik.http.routers.verdaccio.rule=Host(`npmjs.teknologiumum.com`)"
- "traefik.http.routers.verdaccio.tls.certresolver=tlsresolver"
- "traefik.http.routers.verdaccio.middlewares=verdaccio-header,verdaccio-redirectscheme"
- "traefik.http.services.verdaccio.loadbalancer.server.port=4873"
- "traefik.http.services.verdaccio.loadbalancer.server.scheme=http"
- "traefik.http.services.verdaccio.loadbalancer.healthcheck.interval=120s"
- "traefik.http.services.verdaccio.loadbalancer.healthcheck.path=/"
- "traefik.http.middlewares.verdaccio-header.headers.addvaryheader=true"
- "traefik.http.middlewares.verdaccio-header.headers.frameDeny=true"
- "traefik.http.middlewares.verdaccio-header.headers.browserxssfilter=true"
- "traefik.http.middlewares.verdaccio-header.headers.stsSeconds=604800"
- "traefik.http.middlewares.verdaccio-header.headers.stsIncludeSubdomains=true"
- "traefik.http.middlewares.verdaccio-header.headers.browserXssFilter=true"
- "traefik.http.middlewares.verdaccio-header.headers.contentTypeNosniff=true"
- "traefik.http.middlewares.verdaccio-header.headers.customResponseHeaders.server=Teknologi Umum"
- "traefik.http.middlewares.verdaccio-redirectscheme.redirectscheme.scheme=https"
- "traefik.http.middlewares.verdaccio-redirectscheme.redirectscheme.permanent=true"
- "com.centurylinklabs.watchtower.enable=true"
networks:
- public-web
deploy:
mode: replicated
replicas: 1
Expand All @@ -23,3 +42,7 @@ services:
volumes:
verdaccio-storage:
external: true

networks:
public-web:
external: true

0 comments on commit ae9e77e

Please sign in to comment.