mysql:
ports:
- "3306:3306"
build: './build/mysql'
environment:
MYSQL_ROOT_PASSWORD: "asterisk"
MYSQL_DATABASE: "asterisk"
volumes:
- dbData:/var/lib/mysql
----------------------------
1 docker volume ls
local lamp_dbData
2 docker stop containerid && docker rm containerid
3 docker volume rm -f lamp_dbData
4) create the container again
docker compose up -d
No hay comentarios:
Publicar un comentario