Created
April 15, 2022 23:00
-
-
Save serdarde/66f9421d90f8630bb450f5a50540d24c to your computer and use it in GitHub Desktop.
Docker Compose Example for PhpMyAdmin & MariaDB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.7" | |
services: | |
db: | |
image: mariadb:latest | |
restart: always | |
volumes: | |
- volDb:/var/lib/mysql | |
environment: | |
MYSQL_ROOT_PASSWORD: 1234 | |
networks: | |
example-net: | |
ports: | |
- 3306:3306 | |
phpmyadmin: | |
image: phpmyadmin/phpmyadmin:5.1 | |
restart: always | |
depends_on: | |
- db | |
environment: | |
PMA_HOST: db | |
PMA_PORT: 3306 | |
PMA_USER: root | |
PMA_PASSWORD: 1234 | |
ports: | |
- "3333:80" | |
networks: | |
- example-net | |
volumes: | |
volDb: | |
networks: | |
example-net: | |
driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks