2024-05-26 18:09:34 -05:00
|
|
|
if ! command -v docker &>/dev/null; then
|
|
|
|
sudo apt install -y docker.io docker-buildx
|
|
|
|
sudo usermod -aG docker ${USER}
|
2024-05-26 20:37:47 -05:00
|
|
|
|
|
|
|
DOCKER_COMPOSE_VERSION="2.27.0"
|
2024-05-26 18:09:34 -05:00
|
|
|
DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
|
|
|
|
mkdir -p $DOCKER_CONFIG/cli-plugins
|
2024-05-26 21:04:05 -05:00
|
|
|
curl -sSL https://github.com/docker/compose/releases/download/v$DOCKER_COMPOSE_VERSION/docker-compose-linux-x86_64 -o $DOCKER_CONFIG/cli-plugins/docker-compose
|
2024-05-26 18:09:34 -05:00
|
|
|
chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose
|
2024-05-26 17:42:26 -05:00
|
|
|
|
2024-05-26 21:00:55 -05:00
|
|
|
sudo docker create --restart unless-stopped -p 3306:3306 --name=mysql8 -e MYSQL_ROOT_PASSWORD= -e MYSQL_ALLOW_EMPTY_PASSWORD=true mysql:8
|
|
|
|
sudo docker create --restart unless-stopped -p 6379:6379 --name=redis redis
|
2024-05-26 18:09:34 -05:00
|
|
|
fi
|