Adminer:MySQL Docker Configuration - richiedennis/Tech-Journal-SYS265- GitHub Wiki
Prerequisites:
- Have a system that is connected to the internet with a proper hostname, etc.
- Docker and docker-compose should be installed
- Create an empty directory. Name it whatever you please.
- CD into said directory.
- Create a file called docker-compose.yml for the Adminer and MYSQL services and populate with the following (The MYSQL credentials can be whatever you want):
version: '3.1' services: adminer: image: adminer restart: always ports: - 8080:8080 db: image: mysql:5.6 restart: always environment: MYSQL_ROOT_PASSWORD: example MYSQL_DATABASE: adminer MYSQL_USER: richard MYSQL_PASSWORD: password1
- After saving the file, while in the directory, run the command docker-compose up -d
- Run the command docker ps to make sure the images are running
- Browse to the website with the proper port and you should get a prompt letting you know it worked!
Link to source: https://hub.docker.com/_/adminer