Skip to content

Commit

Permalink
(feat) restore docker-compose hosting example
Browse files Browse the repository at this point in the history
  • Loading branch information
leonjza committed Sep 16, 2024
1 parent b89df9c commit fcac110
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
version: '3'

services:
gowitness:
image: ghcr.io/sensepost/gowitness:latest
restart: unless-stopped
command: gowitness report server --host 0.0.0.0 --screenshot-path /data/screenshots --db-uri sqlite:///data/gowitness.sqlite3
volumes:
- ./gowitness.sqlite3:/data/gowitness.sqlite3
- ./screenshots:/data/screenshots
labels:
traefik.enable: true
traefik.http.routers.gowitness.rule: Host(`gowitness.local`)
traefik.http.routers.gowitness.entryPoints: web-secure
traefik.http.routers.gowitness.tls.certResolver: default
traefik.http.routers.gowitness.middlewares: basic-auth

traefik:
image: traefik:3.1
restart: unless-stopped
command:
- --log.level=INFO
- --api.dashboard=true
- --providers.docker
- --providers.docker.exposedByDefault=false
- --entryPoints.web-secure.address=:443
ports:
- 443:443
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
labels:
traefik.enable: true
# configure http basic auth to protect the UI. either set it statically, or
# consider using something like trauth[1] to manage it.
# [1] https://github.com/leonjza/trauth
#
# example credentials here are:
# gowitness:gowitness
# use `htpasswd` to get a hash for a different password. also note you need to escape $ with another $ to $$'s
traefik.http.middlewares.basic-auth.basicauth.users: gowitness:$$2y$$05$$7ADiPfM1kMABSUjofyUTOuJ7U6RcGi5fXeecyYnxjYwRluRRIO1..
traefik.http.middlewares.basic-auth.basicauth.realm: gowitness

0 comments on commit fcac110

Please sign in to comment.