Handy collection of developer/sysadmin web utilities.
Educational example only. Review every volume path, port, and credential before you run this. Do not copy production secrets into your wiki or git repo.
_shared/.env for non-secrets, _shared/.secret for credentialsmkdir -p /path/to/docker/stacks/it-tools
cd /path/to/docker/stacks/it-tools
# paste compose.yaml below, then:
docker compose pull
docker compose up -d
---
services:
it-tools:
image: corentinth/it-tools:latest
container_name: it-tools # Custom name for the container
hostname: itools
env_file:
- /path/to/docker/stacks/_shared/.env
- /path/to/docker/stacks/_shared/.secret
logging:
driver: json-file
options:
max-file: ${DOCKERLOGGING_MAXFILE:-10} # Max number of log files
max-size: ${DOCKERLOGGING_MAXSIZE:-200k} # Max file size
ports:
- 30007:80 # Maps port 80 inside the container to port 8080 on the host
restart: unless-stopped # Ensures the container restarts unless explicitly stopped
_shared/.secret.