Last active
March 14, 2019 09:21
-
-
Save nagubal/332be21326074c708516a013271605fa to your computer and use it in GitHub Desktop.
docker-compose for mariadb & phpmyadmin
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: "2" | |
| services: | |
| db: | |
| image: mariadb:latest | |
| container_name: mariadb | |
| environment: | |
| - MYSQL_ROOT_PASSWORD=mypass | |
| volumes: | |
| - /docker/containers/mariadb/data:/var/lib/mysql | |
| - /docker/containers/mariadb/conf:/etc/mysql/conf.d | |
| ports: | |
| - 3306:3306 | |
| restart: unless-stopped | |
| phpmyadmin: | |
| image: phpmyadmin/phpmyadmin | |
| container_name: phpmyadmin_mariadb | |
| depends_on: | |
| - db | |
| restart: unless-stopped | |
| ports: | |
| - 7979:80 | |
| volumes: | |
| - /docker/containers/mariadb/sessions:/sessions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment