Add Adminer to Laravel Sail
Snippet to add Adminer to Laravel Sail
......
mysql:
image: 'mysql:8.0'
ports:
- '${FORWARD_DB_PORT:-3306}:3306'
environment:
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
MYSQL_DATABASE: '${DB_DATABASE}'
MYSQL_USER: '${DB_USERNAME}'
MYSQL_PASSWORD: '${DB_PASSWORD}'
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
volumes:
- 'sailmysql:/var/lib/mysql'
networks:
- sail
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-p${DB_PASSWORD}"]
retries: 3
timeout: 5s
adminer:
image: 'adminer:latest'
ports:
- 8080:8080
networks:
- sail
......
From this site: https://ecwebservices.medium.com/adding-adminer-to-laravel-sail-727c80835106
Archive link: https://archive.ph/Yfjye