From e7d01d3ee0e1398f90c35313cc5c9e1b0f012001 Mon Sep 17 00:00:00 2001 From: aminespinoza10 Date: Thu, 7 Nov 2024 09:36:42 -0600 Subject: [PATCH] Carpeta volumenes agregada --- Volumenes/docker-compose.yml | 23 +++++++++++++++++++++++ Volumenes/html/index.html | 3 +++ 2 files changed, 26 insertions(+) create mode 100644 Volumenes/docker-compose.yml create mode 100644 Volumenes/html/index.html diff --git a/Volumenes/docker-compose.yml b/Volumenes/docker-compose.yml new file mode 100644 index 0000000..72ddc6a --- /dev/null +++ b/Volumenes/docker-compose.yml @@ -0,0 +1,23 @@ +services: + web: + image: nginx:latest + ports: + - "80:80" + volumes: + - ./html:/usr/share/nginx/html + + app: + image: aminespinoza/websiteplatzi:latest + volumes: + - app_data:/app/data + + db: + image: mysql:5.7 + environment: + MYSQL_ROOT_PASSWORD: example + volumes: + - db_data:/var/lib/mysql + +volumes: + app_data: + db_data: \ No newline at end of file diff --git a/Volumenes/html/index.html b/Volumenes/html/index.html new file mode 100644 index 0000000..f71be15 --- /dev/null +++ b/Volumenes/html/index.html @@ -0,0 +1,3 @@ + + Mi página de inicio personalizada como volumen compartido desde mi entorno local + \ No newline at end of file