Arquivos Docker
[Finalizado Pelo Aluno]
Não achei os conteudos do Docker para criar o docker-composer no github, só tem os arquivos com configurações do Laravel no https://github.com/especializati/php-laravel-tdd
Também acusou este erro e não sei como resolver:
jglopes@DESKTOP-E74PHEE:~/php-tdd$ docker-compose up -d
[+] Building 11.2s (12/12) FINISHED docker:default
=> [app internal] load .dockerignore 0.1s
=> => transferring context: 2B 0.0s
=> [app internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 188B 0.0s
=> [app internal] load metadata for docker.io/library/composer:latest 2.3s
=> [app internal] load metadata for docker.io/library/php:8.1.1-fpm 2.7s
=> [app auth] library/composer:pull token for registry-1.docker.io 0.0s
=> [app auth] library/php:pull token for registry-1.docker.io 0.0s
=> [app stage-0 1/4] FROM docker.io/library/php:8.1.1-fpm@sha256:4db042d1669ac7baef2887fb3c86faa64e688f82711a466416b462e39a1204e0 0.3s
=> => resolve docker.io/library/php:8.1.1-fpm@sha256:4db042d1669ac7baef2887fb3c86faa64e688f82711a466416b462e39a1204e0 0.0s
=> => sha256:4db042d1669ac7baef2887fb3c86faa64e688f82711a466416b462e39a1204e0 1.86kB / 1.86kB 0.0s
=> => sha256:43eccbf9fbcca390a2837c5e079ae61b743f206f20b92ccd60f215812c15cc7d 2.41kB / 2.41kB 0.0s
=> => sha256:96ed7ca1a6fb5c8f38a38fdc93361a0d25f6eacd32ff2648d47044d4ab0e5340 11.45kB / 11.45kB 0.0s
=> CACHED [app] FROM docker.io/library/composer:latest@sha256:572a3d91b1233a8dc9397627f41832a6aa4d0dc63b18c1da816490e6b7f9536a 0.0s
=> [app stage-0 2/4] RUN apt-get update && apt-get install -y git 7.7s
=> [app stage-0 3/4] COPY --from=composer:latest /usr/bin/composer /usr/bin/composer 0.1s
=> [app stage-0 4/4] WORKDIR /var/www 0.0s
=> [app] exporting to image 0.3s
=> => exporting layers 0.3s
=> => writing image sha256:01cc88e89034b400edbc8e4da248fa5edd2616869b75ed890af62944b778e86f 0.0s
=> => naming to docker.io/library/php-tdd-app 0.0s
[+] Running 2/3
✔ Network php-tdd_app-php Created 0.1s
✔ Container php-tdd-app-1 Created 0.1s
⠙ Container php-tdd-nginx-1 Creating 0.1s
Error response from daemon: invalid volume specification: '/run/desktop/mnt/host/wsl/docker-desktop-bind-mounts/Ubuntu-20.04/012bce2c92f7817a6cc7ff727b449d18be3da10b5da64a9bc7a4420b29b3ec0f:var/www:rw': invalid mount config for type "bind": invalid mount path: 'var/www' mount path must be absolute
Olá, João!
Tudo bem?
Pode usar este setup aqui: https://github.com/especializati/setup-docker-laravel
--
Se quiser compartilhar o seu código (setup) comigo, te ajudo a resolver. No aguardo amigo!
Precisa estar logado para conseguir responder a este ticket!
Clique Aqui Para Entrar!