Skip to content

Commit

Permalink
feat: mysql + phpMyAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisHBeck committed Jun 1, 2024
1 parent 9d06b0c commit 30336a3
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions mysql/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
services:
mysql:
platform: linux/x86_64
image: mysql
volumes:
- db_data:/var/lib/mysql
restart: always
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: yourdb
MYSQL_PASSWORD: password
networks:
- mysql-phpmyadmin

phpmyadmin:
depends_on:
- mysql
image: phpmyadmin
restart: always
ports:
- "8090:80"
environment:
PMA_HOST: mysql
MYSQL_ROOT_PASSWORD: password
networks:
- mysql-phpmyadmin

networks:
mysql-phpmyadmin:

volumes:
db_data:

0 comments on commit 30336a3

Please sign in to comment.