sprintcube/docker-compose-lamp

[BUG] Compose file is invalid because of services.phpmyadmin.ports

HorselessName opened this issue · 2 comments

Hello. I followed all the steps provided, and when running docker-compose up I got the following error:

WARNING: The HOST_MACHINE_UNSECURE_HOST_PORT variable is not set. Defaulting to a blank string.
WARNING: The HOST_MACHINE_PMA_PORT variable is not set. Defaulting to a blank string.
WARNING: The HOST_MACHINE_PMA_SECURE_PORT variable is not set. Defaulting to a blank string.
WARNING: The HOST_MACHINE_REDIS_PORT variable is not set. Defaulting to a blank string.

ERROR: The Compose file './docker-compose.yml' is invalid because:
services.phpmyadmin.ports contains an invalid type, it should be a number, or an object
services.phpmyadmin.ports contains an invalid type, it should be a number, or an object
services.webserver.ports contains an invalid type, it should be a number, or an object

same here...
I solved it by renaming the sample.env file to .env

But i get a new error:
> [2/8] RUN apt-get -y update && apt-get upgrade -y: #0 0.558 Ign:1 http://security.debian.org/debian-security stretch/updates InRelease #0 0.572 Ign:2 http://deb.debian.org/debian stretch InRelease #0 0.583 Ign:3 http://security.debian.org/debian-security stretch/updates Release #0 0.596 Ign:4 http://deb.debian.org/debian stretch-updates InRelease #0 0.607 Ign:5 http://security.debian.org/debian-security stretch/updates/main amd64 Packages #0 0.620 Ign:6 http://deb.debian.org/debian stretch Release #0 0.632 Ign:7 http://security.debian.org/debian-security stretch/updates/main all Packages #0 0.646 Ign:8 http://deb.debian.org/debian stretch-updates Release #0 0.656 Ign:5 http://security.debian.org/debian-security stretch/updates/main amd64 Packages #0 0.670 Ign:9 http://deb.debian.org/debian stretch/main amd64 Packages #0 0.681 Ign:7 http://security.debian.org/debian-security stretch/updates/main all Packages #0 0.697 Ign:10 http://deb.debian.org/debian stretch/main all Packages #0 0.707 Ign:5 http://security.debian.org/debian-security stretch/updates/main amd64 Packages #0 0.721 Ign:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages #0 0.732 Ign:7 http://security.debian.org/debian-security stretch/updates/main all Packages #0 0.744 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages #0 0.756 Ign:5 http://security.debian.org/debian-security stretch/updates/main amd64 Packages #0 0.770 Ign:9 http://deb.debian.org/debian stretch/main amd64 Packages #0 0.782 Ign:7 http://security.debian.org/debian-security stretch/updates/main all Packages #0 0.796 Ign:10 http://deb.debian.org/debian stretch/main all Packages #0 0.812 Ign:5 http://security.debian.org/debian-security stretch/updates/main amd64 Packages #0 0.822 Ign:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages #0 0.836 Ign:7 http://security.debian.org/debian-security stretch/updates/main all Packages #0 0.856 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages #0 0.861 Err:5 http://security.debian.org/debian-security stretch/updates/main amd64 Packages #0 0.861 404 Not Found [IP: 151.101.130.132 80] #0 0.880 Ign:9 http://deb.debian.org/debian stretch/main amd64 Packages #0 0.886 Ign:7 http://security.debian.org/debian-security stretch/updates/main all Packages #0 0.904 Ign:10 http://deb.debian.org/debian stretch/main all Packages #0 0.929 Ign:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages #0 0.953 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages #0 0.980 Ign:9 http://deb.debian.org/debian stretch/main amd64 Packages #0 1.004 Ign:10 http://deb.debian.org/debian stretch/main all Packages #0 1.028 Ign:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages #0 1.052 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages #0 1.077 Ign:9 http://deb.debian.org/debian stretch/main amd64 Packages #0 1.102 Ign:10 http://deb.debian.org/debian stretch/main all Packages #0 1.127 Ign:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages #0 1.160 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages #0 1.184 Err:9 http://deb.debian.org/debian stretch/main amd64 Packages #0 1.184 404 Not Found #0 1.248 Ign:10 http://deb.debian.org/debian stretch/main all Packages #0 1.273 Err:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages #0 1.273 404 Not Found #0 1.298 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages #0 1.301 Reading package lists... #0 1.307 W: The repository 'http://security.debian.org/debian-security stretch/updates Release' does not have a Release file. #0 1.307 W: The repository 'http://deb.debian.org/debian stretch Release' does not have a Release file. #0 1.307 W: The repository 'http://deb.debian.org/debian stretch-updates Release' does not have a Release file. #0 1.307 E: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/main/binary-amd64/Packages 404 Not Found [IP: 151.101.130.132 80] #0 1.307 E: Failed to fetch http://deb.debian.org/debian/dists/stretch/main/binary-amd64/Packages 404 Not Found #0 1.308 E: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/main/binary-amd64/Packages 404 Not Found #0 1.308 E: Some index files failed to download. They have been ignored, or old ones used instead.

Hi looks like your env was not present.
The second error is a different thing. That will be addressed here: #235