...
Code Block |
---|
version: '3' services: db: image: mysql:5.7 container_name: db environment: MYSQL_DATABASE: daselement MYSQL_ROOT_PASSWORD: root MYSQL_ROOT_PASSWORD: password MYSQL_USER: db_userdbuser MYSQL_PASSWORD: db_user_passdbuser ports: - 3306:3306 volumes: - dbdata:/var/lib/mysql phpmyadmin: image: phpmyadmin/phpmyadmin container_name: pma links: - db environment: PMA_HOST: db PMA_PORT: 3306 PMA_ARBITRARY: 1 restart: always ports: - 8081:80 volumes: dbdata:. |
...
In a web browser you can now access phpMyAdmin: http://localhost:8081
Login as root user. Login information as defined in the docker-compose.yml file.
...