From 3488aa5217f573aac0de6affc54c95fcfa367501 Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Mon, 10 Oct 2022 22:19:59 -0600 Subject: [PATCH] Agregando la resolucion del reto clase 3 --- .../mysql-phpmyadmin/docker-compose.yaml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Clase 3/Ejercicio/mysql-phpmyadmin/docker-compose.yaml diff --git a/Clase 3/Ejercicio/mysql-phpmyadmin/docker-compose.yaml b/Clase 3/Ejercicio/mysql-phpmyadmin/docker-compose.yaml new file mode 100644 index 0000000..66c8b98 --- /dev/null +++ b/Clase 3/Ejercicio/mysql-phpmyadmin/docker-compose.yaml @@ -0,0 +1,28 @@ +version: '3.3' +services: + db: + image: mysql + restart: always + environment: + MYSQL_ROOT_PASSWORD: password + ports: + - '3306:3306' + expose: + - '3306' + volumes: + - my-db:/var/lib/mysql + phpmyadmin: + image: phpmyadmin/phpmyadmin + restart: always + environment: + PMA_HOSTS: db + MYSQL_ROOT_PASSWORD: password + ports: + - '8080:80' + expose: + - '80' + depends_on: + - db +volumes: + my-db: + external: false #if true will try to find a folder that you set \ No newline at end of file