hackingtool/docker-compose.yml

41 lines
1 KiB
YAML
Raw Permalink Normal View History

# 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:
build:
context: .
dockerfile: Dockerfile
image: hackingtool:latest
container_name: hackingtool
stdin_open: true
tty: true
# 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:
# Live source mount — code changes are visible without rebuilding
2022-12-02 21:16:16 +00:00
- .:/root/hackingtool
- hackingtool_data:/root/.hackingtool
restart: "no"
volumes:
hackingtool_data: