https://www.sourcecodester.com/php/15517/company-website-cms-php.html
Retire-os conforme quiser personalizar sua instalação no arquivo dockerfile.
Além disso, esse projeto é bom para personalizar para outros projetos Web também.
Iniciar:
docker-compose up -d
Parar:
docker-compose down
Fazer o build dos containers analizando a construção:
docker-compose up --build
A princípio é essa configuração:
Endereço: localhost
SGBD: MySQL
Banco: opencartbrasil
User: root
Senha: root
sudo apt-get install
apt-transport-https
ca-certificates
curl
gnupg
lsb-release
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
Depois de instalado e configurado rode o Docker: sudo service docker start
Testar se o serviço Docker está rodando corretamente: sudo docker run hello-world
OBS: EM ALGUNS CASOS PODE ESTAR NO /usr/bin/docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
https://docs.docker.com/engine/install/linux-postinstall/
sudo timedatectl set-timezone America/Sao_Paulo
sudo add-apt-repository ppa:ondrej/php
sudo apt-get install -y php8.2-cli php8.2-common php8.2-pgsql php8.2-zip php8.2-gd php8.2-mbstring php8.2-curl php8.2-xml php8.2-bcmath
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -r "if (hash_file('sha384', 'composer-setup.php') === 'e21205b207c3ff031906575712edab6f13eb0b361f2085f1f1237b7126d785e826a450292b6cfd1d64d92e6563bbde02') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" php composer-setup.php php -r "unlink('composer-setup.php');"
sudo apt-get install composer