Skip to content

Instantly share code, notes, and snippets.

@hivelogic2018
Created August 30, 2025 03:38
Show Gist options
  • Select an option

  • Save hivelogic2018/f66a0be0d38737ee268e7f1d10060d79 to your computer and use it in GitHub Desktop.

Select an option

Save hivelogic2018/f66a0be0d38737ee268e7f1d10060d79 to your computer and use it in GitHub Desktop.
Alpine-admin-box
# Alpine Admin/Tools Box
alpine-admin-box:
image: debian:stable-slim # A small image with git and basic tools
container_name: alpine-admin-box
env_file:
- /etc/infra.env
networks:
- infra_net
# You might want to keep it running for interactive use
restart: unless-stopped # Or 'unless-stopped' if you want it persistent
# Optionally mount a volume for persistent scripts/configs
# volumes:
# - ./admin-scripts:/scripts
# Entrypoint to keep it alive for interactive sessions
entrypoint: ["tail", "-f", "/dev/null"]
logging: # Verbose logging configuration
driver: "json-file"
options:
max-size: "50m"
max-file: "6"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment