Lightweight database management UI.
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/adminer
cd /path/to/docker/stacks/adminer
# paste compose.yaml below, then:
docker compose pull
docker compose up -d
---
services:
adminer:
image: adminer:latest
container_name: adminer
hostname: adminer
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:
- 30001:8080
restart: unless-stopped