前提・実現したいこと
Ubuntu Server 18.04 LTS 上でlaradockを起動したい
該当のソースコード
awsのubuntu上でlaradockを起動時に問題が起きます
ubuntuでdokerのインストール後
#dockerのインストール root@ip:/home/ubuntu# apt-get install \apt-transport-https \ca-certificates \curl \gnupg-agent \software-properties-common root@ip:/home/ubuntu# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - root@ip:/home/ubuntu# apt-key fingerprint 0EBFCD88 root@ip:/home/ubuntu# add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable" root@ip:/home/ubuntu# apt-get install docker-ce docker-ce-cli containerd.io #docker-composeのインストール root@ip:/home/ubuntu# apt install docker-compose
ubuntu上で以下を実行後
ubuntu@ip-10-0-0-26:~/StudyShareTest1/laradock$ docker-compose up -d nginx mysql phpmyadmin WARNING: The IDE_THEIA_PORT variable is not set. Defaulting to a blank string. WARNING: The APP_CODE_PATH_HOST variable is not set. Defaulting to a blank string. WARNING: The MAILU_VERSION variable is not set. Defaulting to a blank string. WARNING: The DATA_PATH_HOST variable is not set. Defaulting to a blank string. WARNING: The PMA_USER variable is not set. Defaulting to a blank string. WARNING: The PMA_PASSWORD variable is not set. Defaulting to a blank string. WARNING: The PMA_ROOT_PASSWORD variable is not set. Defaulting to a blank string. WARNING: The PMA_MAX_EXECUTION_TIME variable is not set. Defaulting to a blank string. WARNING: The PMA_MEMORY_LIMIT variable is not set. Defaulting to a blank string. WARNING: The PMA_UPLOAD_LIMIT variable is not set. Defaulting to a blank string. WARNING: The PMA_DB_ENGINE variable is not set. Defaulting to a blank string. WARNING: The PMA_PORT variable is not set. Defaulting to a blank string. WARNING: The TRAEFIK_HOST_HTTP_PORT variable is not set. Defaulting to a blank string. WARNING: The TRAEFIK_HOST_HTTPS_PORT variable is not set. Defaulting to a blank string. WARNING: The TRAEFIK_DASHBOARD_PORT variable is not set. Defaulting to a blank string. WARNING: The ACME_EMAIL variable is not set. Defaulting to a blank string. WARNING: The ACME_DOMAIN variable is not set. Defaulting to a blank string. WARNING: The TRAEFIK_DASHBOARD_USER variable is not set. Defaulting to a blank string. WARNING: The GRAYLOG_PORT variable is not set. Defaulting to a blank string. WARNING: The GRAYLOG_SYSLOG_TCP_PORT variable is not set. Defaulting to a blank string. WARNING: The GRAYLOG_SYSLOG_UDP_PORT variable is not set. Defaulting to a blank string. WARNING: The GRAYLOG_GELF_TCP_PORT variable is not set. Defaulting to a blank string. WARNING: The GRAYLOG_GELF_UDP_PORT variable is not set. Defaulting to a blank string. WARNING: The GRAYLOG_PASSWORD variable is not set. Defaulting to a blank string. WARNING: The GRAYLOG_SHA256_PASSWORD variable is not set. Defaulting to a blank string. WARNING: The DEJAVU_HTTP_PORT variable is not set. Defaulting to a blank string. WARNING: The NETDATA_PORT variable is not set. Defaulting to a blank string. WARNING: The POSTGRES_DB variable is not set. Defaulting to a blank string. WARNING: The POSTGRES_USER variable is not set. Defaulting to a blank string. WARNING: The POSTGRES_PASSWORD variable is not set. Defaulting to a blank string. WARNING: The POSTGRES_PORT variable is not set. Defaulting to a blank string. WARNING: The CLICKHOUSE_USER variable is not set. Defaulting to a blank string. WARNING: The CLICKHOUSE_PASSWORD variable is not set. Defaulting to a blank string. WARNING: The CLICKHOUSE_VERSION variable is not set. Defaulting to a blank string. WARNING: The CLICKHOUSE_GOSU_VERSION variable is not set. Defaulting to a blank string. WARNING: The CLICKHOUSE_CUSTOM_CONFIG variable is not set. Defaulting to a blank string. WARNING: The CLICKHOUSE_USERS_CUSTOM_CONFIG variable is not set. Defaulting to a blank string. WARNING: The CLICKHOUSE_HOST_LOG_PATH variable is not set. Defaulting to a blank string. WARNING: The CLICKHOUSE_ENTRYPOINT_INITDB variable is not set. Defaulting to a blank string. WARNING: The CLICKHOUSE_HTTP_PORT variable is not set. Defaulting to a blank string. WARNING: The CLICKHOUSE_CLIENT_PORT variable is not set. Defaulting to a blank string. WARNING: The CLICKHOUSE_NATIVE_PORT variable is not set. Defaulting to a blank string. WARNING: The MAILDEV_HTTP_PORT variable is not set. Defaulting to a blank string. WARNING: The MAILDEV_SMTP_PORT variable is not set. Defaulting to a blank string. WARNING: The LARAVEL_ECHO_SERVER_PORT variable is not set. Defaulting to a blank string. WARNING: The CHANGE_SOURCE variable is not set. Defaulting to a blank string. WARNING: The SONARQUBE_POSTGRES_USER variable is not set. Defaulting to a blank string. WARNING: The SONARQUBE_POSTGRES_PASSWORD variable is not set. Defaulting to a blank string. WARNING: The SONARQUBE_POSTGRES_HOST variable is not set. Defaulting to a blank string. WARNING: The SONARQUBE_POSTGRES_DB variable is not set. Defaulting to a blank string. WARNING: The SONARQUBE_HOSTNAME variable is not set. Defaulting to a blank string. WARNING: The SONARQUBE_PORT variable is not set. Defaulting to a blank string. WARNING: The SELENIUM_PORT variable is not set. Defaulting to a blank string. WARNING: The APACHE_HOST_HTTP_PORT variable is not set. Defaulting to a blank string. WARNING: The APACHE_HOST_HTTPS_PORT variable is not set. Defaulting to a blank string. WARNING: The APP_CODE_PATH_CONTAINER variable is not set. Defaulting to a blank string. WARNING: The APP_CODE_CONTAINER_FLAG variable is not set. Defaulting to a blank string. WARNING: The APACHE_HOST_LOG_PATH variable is not set. Defaulting to a blank string. WARNING: The APACHE_SITES_PATH variable is not set. Defaulting to a blank string. WARNING: The APACHE_PHP_UPSTREAM_CONTAINER vari ...省略 ERROR: The Compose file './docker-compose.yml' is invalid because: services.traefik.ports value [u':', u':', u':'] has non-unique elements services.proxy.expose is invalid: should be of the format 'PORT[/PROTOCOL]' services.proxy2.expose is invalid: should be of the format 'PORT[/PROTOCOL]' services.proxy.ports contains an invalid type, it should be a number, or an object services.proxy2.ports contains an invalid type, it should be a number, or an object services.traefik.ports contains an invalid type, it should be a number, or an object services.traefik.ports contains an invalid type, it should be a number, or an object services.traefik.ports contains an invalid type, it should be a number, or an object services.memcached.ports contains an invalid type, it should be a number, or an object services.beanstalkd.ports contains an invalid type, it should be a number, or an object services.graylog.ports contains an invalid type, it should be a number, or an object services.graylog.ports contains an invalid type, it should be a number, or an object ...省略
のエラーが出てしまいます
macのローカルのターミナル docker-compose up -d nginx mysql phpmyadmin実行時は
のように上手く実行できました
補足情報(FW/ツールのバージョンなど)
Ubuntu Server 18.04 LTS
回答1件
あなたの回答
tips
プレビュー