mirror of
https://github.com/aleleba/curso-basico-kubernetes.git
synced 2025-06-23 15:38:13 -06:00
Agregando clase 3
This commit is contained in:
16
Clase 3/Ejercicio/mysql/docker-compose.yaml
Normal file
16
Clase 3/Ejercicio/mysql/docker-compose.yaml
Normal file
@ -0,0 +1,16 @@
|
||||
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
|
||||
volumes:
|
||||
my-db:
|
||||
external: false #if true will try to find a folder that you set
|
Reference in New Issue
Block a user