Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
services:
jwtauditor:
build: .
container_name: jwtauditor
ports:
- "3000:3000"
restart: unless-stopped
# labels:
# - "traefik.enable=true"
# - "traefik.http.routers.jwtauditor.rule=Host(`jwtauditor.local`)"
# - "traefik.http.routers.jwtauditor.entrypoints=web"
# - "traefik.http.services.jwtauditor.loadbalancer.server.port=80"
networks:
- jwtauditor-network
# healthcheck:
# test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:80/"]
# interval: 30s
# timeout: 10s
# retries: 3
# start_period: 10s
#
# Optional: Add a development environment with live reload
# jwtauditor-dev:
# image: node:18-alpine
# container_name: jwtauditor-dev
# working_dir: /app
# volumes:
# - .:/app
# ports:
# - "3992:3000"
# command: npx serve . -p 3000
# profiles:
# - development
# networks:
# - jwtauditor-network
# environment:
# - NODE_ENV=development

# Optional: Add a reverse proxy for production
# traefik:
# image: traefik:v3.0
# container_name: jwtauditor-traefik
# command:
# - "--api.insecure=true"
# - "--providers.docker=true"
# - "--providers.docker.exposedbydefault=false"
# - "--entrypoints.web.address=:80"
# - "--entrypoints.websecure.address=:443"
# ports:
# - "80:80"
# - "443:443"
# - "8080:8080" # Traefik dashboard
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock:ro
# profiles:
# - production
# networks:
# - jwtauditor-network

networks:
jwtauditor-network:
driver: bridge
name: jwtauditor-network

volumes:
jwtauditor-data:
driver: local
name: jwtauditor-data
11 changes: 11 additions & 0 deletions dokerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
From node:current-alpine3.22
LABEL maintainer="JWTAuditor Team"
LABEL description="JWT Auditor - Professional JWT security testing platform"

RUN mkdir -p /var/www
COPY . /var/www/

WORKDIR /var/www

EXPOSE 8000
CMD ["npx", "serve", "."]