2026-03-15 08:57:36 +00:00
|
|
|
# docker-compose.yml
|
|
|
|
|
# Use: docker compose up -d then docker exec -it hackingtool bash
|
|
|
|
|
#
|
|
|
|
|
# Profiles:
|
|
|
|
|
# (default) — runs the built image; code is embedded at build time
|
|
|
|
|
# dev — mounts source directory for live editing without rebuilding
|
|
|
|
|
# docker compose --profile dev up
|
|
|
|
|
|
2022-12-02 21:16:16 +00:00
|
|
|
services:
|
|
|
|
|
hackingtool:
|
2026-03-15 08:57:36 +00:00
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
image: hackingtool:latest
|
2023-09-01 07:02:42 +00:00
|
|
|
container_name: hackingtool
|
|
|
|
|
stdin_open: true
|
|
|
|
|
tty: true
|
2026-03-15 08:57:36 +00:00
|
|
|
# Persist tools installed at runtime across container restarts
|
|
|
|
|
volumes:
|
|
|
|
|
- hackingtool_data:/root/.hackingtool
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
|
|
hackingtool-dev:
|
|
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
image: hackingtool:latest
|
|
|
|
|
container_name: hackingtool-dev
|
|
|
|
|
stdin_open: true
|
|
|
|
|
tty: true
|
|
|
|
|
profiles:
|
|
|
|
|
- dev
|
2022-12-02 21:16:16 +00:00
|
|
|
volumes:
|
2026-03-15 08:57:36 +00:00
|
|
|
# Live source mount — code changes are visible without rebuilding
|
2022-12-02 21:16:16 +00:00
|
|
|
- .:/root/hackingtool
|
2026-03-15 08:24:03 +00:00
|
|
|
- hackingtool_data:/root/.hackingtool
|
2026-03-15 08:57:36 +00:00
|
|
|
restart: "no"
|
2026-03-15 08:24:03 +00:00
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
hackingtool_data:
|