I am a newbie. I am running mySQL in a container. The mysql part of the .yml is below. I am using bitnami containers. Normally, phpMyAdmin can only be accessed from localhost on bitnami (for security purposes). In that case they recommend using putty to create a tunnel to access phpmyadmin on a remote server. I realize that my container (running on my laptop) is kind of like “a remote server”. How can I access phpmyadmin. OR do I run phpmyadmin on my host and just attach to the mysql running in the container? Sorry I am so confused.
mysql:
container_name: “mysql”
restart: unless-stopped
image: mysql:5.6
environment:
- MYSQL_DATABASE
- MYSQL_PASSWORD
- MYSQL_ROOT_PASSWORD
- MYSQL_USER
volumes:
- data:/var/lib/mysql
- ./mysql/mysql.sql:/docker-entrypoint-initdb.d/mysql.sql
ports:
- “3308:3306”
networks:
- net