Last active
March 9, 2022 16:01
-
-
Save himuraxkenji/be8a6576da9ac11ee94e73ea01f04860 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.3' | |
| services: | |
| # CONFIGURATION | |
| postgres: | |
| image: postgres:13 | |
| environment: | |
| - POSTGRES_DB=my_db | |
| - POSTGRES_USER=root | |
| - POSTGRES_PASSWORD=123456 | |
| ports: | |
| - '5432:5432' | |
| volumes: | |
| - ./postgres_data:/var/lib/postgresql/data | |
| pgadmin: | |
| image: dpage/pgadmin4 | |
| environment: | |
| - [email protected] | |
| - PGADMIN_DEFAULT_PASSWORD=root | |
| ports: | |
| - "5050:80" | |
| depends_on: | |
| - postgres | |
| # MYSQL CONFIGURATION | |
| mysql: | |
| image: mysql:5.7 | |
| environment: | |
| - MYSQL_DATABASE=my_db | |
| - MYSQL_USER=root | |
| - MYSQL_PASSWORD=123456 | |
| ports: | |
| - '3306:3306' | |
| volumes: | |
| - ./mysql_data:/var/lib/mysql | |
| phpmyadmin: | |
| image: phpmyadmin/phpmyadmin | |
| environment: | |
| - MYSQL_PASSWORD=123456 | |
| - PMA=mysql | |
| ports: | |
| - "8080:80" | |
| depends_on: | |
| - mysql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment