wodby / docker4drupal

Docker-based Drupal stack
https://wodby.com/docker4drupal
MIT License
1.25k stars 535 forks source link

http://drupal.docker.localhost:8000/ asks for the DNS #506

Open javaskater opened 2 years ago

javaskater commented 2 years ago

Codebase mounted codebase

Describe your issue

Server: Containers: 8 Running: 7 Paused: 0 Stopped: 1 Images: 16 Server Version: 20.10.12 Storage Driver: overlay2 Backing Filesystem: extfs Supports d_type: true Native Overlay Diff: true userxattr: false Logging Driver: json-file Cgroup Driver: cgroupfs Cgroup Version: 1 Plugins: Volume: local Network: bridge host ipvlan macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog Swarm: inactive Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc Default Runtime: runc Init Binary: docker-init containerd version: 7b11cfaabd73bb80907dd23182b9347b4245eb5d runc version: v1.0.2-0-g52b36a2 init version: de40ad0 Security Options: apparmor seccomp Profile: default Kernel Version: 4.15.0-163-generic Operating System: Ubuntu 18.04.6 LTS OSType: linux Architecture: x86_64 CPUs: 2 Total Memory: 7.699GiB Name: jpmena-ThinkCentre-M710t ID: 47WE:DEM4:ESMA:X4VM:55NU:HMFK:X77J:KBO7:FOIW:DAEC:OTRC:L7ND Docker Root Dir: /var/lib/docker Debug Mode: false HTTP Proxy: http://monproxy:monport/ HTTPS Proxy: http://monproxy:monport/ No Proxy: localhost,127.0.0.1, Registry: https://index.docker.io/v1/ Labels: Experimental: false Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false

WARNING: No swap limit support


**Contents of your `docker-compose.yml`**

version: "3.7"

services: mariadb: image: wodby/mariadb:$MARIADB_TAG container_name: "${PROJECT_NAME}_mariadb" stop_grace_period: 30s environment: MYSQL_ROOT_PASSWORD: $DB_ROOT_PASSWORD MYSQL_DATABASE: $DB_NAME MYSQL_USER: $DB_USER MYSQL_PASSWORD: $DB_PASSWORD

volumes:

- ./mariadb-init:/docker-entrypoint-initdb.d # Place init .sql file(s) here.

- /path/to/mariadb/data/on/host:/var/lib/mysql # Use bind mount

php: image: wodby/drupal-php:$PHP_TAG container_name: "${PROJECT_NAME}_php" environment: PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mailhog:1025

PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S opensmtpd:25

DB_HOST: $DB_HOST

DB_PORT: $DB_PORT

DB_USER: $DB_USER

DB_PASSWORD: $DB_PASSWORD

DB_NAME: $DB_NAME

DB_DRIVER: $DB_DRIVER

PHP_FPM_USER: wodby

PHP_FPM_GROUP: wodby

COLUMNS: 80 # Set 80 columns for docker exec -it.

Read instructions at https://wodby.com/docs/stacks/php/local/#xdebug

  PHP_XDEBUG: 1
  PHP_XDEBUG_MODE: debug

PHP_IDE_CONFIG: serverName=my-ide

PHP_XDEBUG_IDEKEY: "my-ide"

PHP_XDEBUG_CLIENT_HOST: 172.17.0.1 # Linux

PHP_XDEBUG_CLIENT_HOST: host.docker.internal # Docker 18.03+ Mac/Win

PHP_XDEBUG_CLIENT_HOST: 10.0.75.1 # Windows, Docker < 18.03

  PHP_XDEBUG_LOG: /tmp/php-xdebug.log
  PHP_XDEBUG_START_WITH_REQUEST: "yes"

PHPUnit Drupal testing configurations

SIMPLETEST_BASE_URL: "http://nginx"

SIMPLETEST_DB: "${DB_DRIVER}://${DB_USER}:${DB_PASSWORD}@${DB_HOST}/${DBNAME}#tests"

MINK_DRIVER_ARGS_WEBDRIVER: '["chrome", {"browserName":"chrome","goog:chromeOptions":{"args":["--disable-gpu","--headless"]}}, "http://chrome:9515"]'

  HTTP_PROXY: $HTTP_PROXY
  HTTPS_PROXY: $HTTPS_PROXY
  FTP_PROXY: $FTP_PROXY
  NO_PROXY: $NO_PROXY
volumes:
- ./:/var/www/html:cached

Alternative for macOS users: Mutagen https://wodby.com/docs/stacks/drupal/local#docker-for-mac

- mutagen:/var/www/html

For XHProf and Xdebug profiler traces

- files:/mnt/files

crond: image: wodby/drupal-php:$PHP_TAG container_name: "${PROJECT_NAME}_crond" environment: CRONTAB: "0 drush -r /var/www/html/web cron" command: sudo -E LD_PRELOAD=/usr/lib/preloadable_libiconv.so crond -f -d 0 volumes:

postgres:

image: wodby/postgres:$POSTGRES_TAG

container_name: "${PROJECT_NAME}_postgres"

stop_grace_period: 30s

environment:

POSTGRES_PASSWORD: $DB_PASSWORD

POSTGRES_DB: $DB_NAME

POSTGRES_USER: $DB_USER

POSTGRES_DB_EXTENSIONS: pg_trgm

volumes:

- ./postgres-init:/docker-entrypoint-initdb.d # Place init file(s) here.

- /path/to/postgres/data/on/host:/var/lib/postgresql/data # Use bind mount

apache: image: wodby/apache:$APACHE_TAG container_name: "${PROJECT_NAME}_apache" depends_on:

varnish:

image: wodby/varnish:$VARNISH_TAG

container_name: "${PROJECT_NAME}_varnish"

depends_on:

- nginx

environment:

VARNISH_SECRET: secret

VARNISH_BACKEND_HOST: nginx

VARNISH_BACKEND_PORT: 80

VARNISH_CONFIG_PRESET: drupal

VARNISH_ALLOW_UNRESTRICTED_PURGE: 1

labels:

- "traefik.http.services.${PROJECT_NAME}_varnish.loadbalancer.server.port=6081"

- "traefik.http.routers.${PROJECT_NAME}_varnish.rule=Host(varnish.${PROJECT_BASE_URL})"

redis:

container_name: "${PROJECT_NAME}_redis"

image: wodby/redis:$REDIS_TAG

adminer:

container_name: "${PROJECT_NAME}_adminer"

image: wodby/adminer:$ADMINER_TAG

environment:

For PostgreSQL:

ADMINER_DEFAULT_DB_DRIVER: pgsql

ADMINER_DEFAULT_DB_HOST: $DB_HOST

ADMINER_DEFAULT_DB_NAME: $DB_NAME

labels:

- "traefik.http.routers.${PROJECT_NAME}_adminer.rule=Host(adminer.${PROJECT_BASE_URL})"

pma: image: phpmyadmin/phpmyadmin container_name: "${PROJECT_NAME}_pma" environment: PMA_HOST: $DB_HOST PMA_USER: $DB_USER PMA_PASSWORD: $DB_PASSWORD UPLOAD_LIMIT: 1G labels:

solr:

image: wodby/solr:$SOLR_TAG

container_name: "${PROJECT_NAME}_solr"

environment:

SOLR_DEFAULT_CONFIG_SET: $SOLR_CONFIG_SET

SOLR_HEAP: 1024m

labels:

- "traefik.http.services.${PROJECT_NAME}_solr.loadbalancer.server.port=8983"

- "traefik.http.routers.${PROJECT_NAME}_solr.rule=Host(solr.${PROJECT_BASE_URL})"

drupal-node:

image: wodby/drupal-node:$DRUPAL_NODE_TAG

container_name: "${PROJECT_NAME}_drupal_nodejs"

labels:

- "traefik.http.routers.${PROJECT_NAME}_drupal_node.rule=Host(drupal_node.${PROJECT_BASE_URL})"

environment:

NODE_SERVICE_KEY: node-service-key

memcached:

container_name: "${PROJECT_NAME}_memcached"

image: wodby/memcached:$MEMCACHED_TAG

rsyslog:

container_name: "${PROJECT_NAME}_rsyslog"

image: wodby/rsyslog:$RSYSLOG_TAG

athenapdf:

image: arachnysdocker/athenapdf-service:$ATHENAPDF_TAG

container_name: "${PROJECT_NAME}_athenapdf"

environment:

WEAVER_AUTH_KEY: weaver-auth-key

WEAVER_ATHENA_CMD: "athenapdf -S"

WEAVER_MAX_WORKERS: 10

WEAVER_MAX_CONVERSION_QUEUE: 50

WEAVER_WORKER_TIMEOUT: 90

WEAVER_CONVERSION_FALLBACK: "false"

node:

image: wodby/node:$NODE_TAG

container_name: "${PROJECT_NAME}_node"

working_dir: /var/www/html/path/to/theme/to/build

labels:

- "traefik.http.services.${PROJECT_NAME}_node.loadbalancer.server.port=3000"

- "traefik.http.routers.${PROJECT_NAME}_node.rule=Host(node.${PROJECT_BASE_URL})"

expose:

- "3000"

volumes:

- ./:/var/www/html

command: sh -c 'yarn install && yarn run start'

blackfire:

image: blackfire/blackfire

container_name: "${PROJECT_NAME}_blackfire"

environment:

BLACKFIRE_SERVER_ID: XXXXX

BLACKFIRE_SERVER_TOKEN: YYYYY

webgrind:

image: wodby/webgrind:$WEBGRIND_TAG

container_name: "${PROJECT_NAME}_webgrind"

environment:

WEBGRIND_PROFILER_DIR: /mnt/files/xdebug

labels:

- "traefik.http.routers.${PROJECT_NAME}_webgrind.rule=Host(webgrind.${PROJECT_BASE_URL})"

volumes:

- files:/mnt/files

elasticsearch:

image: wodby/elasticsearch:$ELASTICSEARCH_TAG

container_name: "${PROJECT_NAME}_elasticsearch"

environment:

ES_JAVA_OPTS: "-Xms500m -Xmx500m"

ulimits:

memlock:

soft: -1

hard: -1

kibana:

image: wodby/kibana:$KIBANA_TAG

container_name: "${PROJECT_NAME}_kibana"

depends_on:

- elasticsearch

labels:

- "traefik.http.services.${PROJECT_NAME}_kibana.loadbalancer.server.port=5601"

- "traefik.http.routers.${PROJECT_NAME}_kibana.rule=Host(kibana.${PROJECT_BASE_URL})"

opensmtpd:

container_name: "${PROJECT_NAME}_opensmtpd"

image: wodby/opensmtpd:$OPENSMTPD_TAG

xhprof:

image: wodby/xhprof:$XHPROF_TAG

container_name: "${PROJECT_NAME}_xhprof"

restart: always

volumes:

- files:/mnt/files

labels:

- "traefik.http.routers.${PROJECT_NAME}_xhprof.rule=Host(xhprof.${PROJECT_BASE_URL})"

chrome:

image: selenium/standalone-chrome:$SELENIUM_CHROME_TAG

container_name: "${PROJECT_NAME}_chrome"

volumes:

- /dev/shm:/dev/shm

entrypoint:

- chromedriver

- "--no-sandbox"

- "--disable-dev-shm-usage"

- "--log-path=/tmp/chromedriver.log"

- "--verbose"

- "--whitelisted-ips="

traefik: image: traefik:v2.0 container_name: "${PROJECT_NAME}_traefik" command: --api.insecure=true --providers.docker ports:

mutagen:

build:

context: .

dockerfile: mutagen/Dockerfile

init: true

container_name: "mutagen"

volumes:

- mutagen:/var/www/html

volumes:

For macOS users (Mutagen)

mutagen:

For Xdebug profiler

files:


**Contents of your `.env`**

Documentation available at https://wodby.com/docs/stacks/drupal/local

Changelog can be found at https://github.com/wodby/docker4drupal/releases

Images tags format explained at https://github.com/wodby/docker4drupal#images-tags

PROJECT SETTINGS

PROJECT_NAME=my_drupal9_project PROJECT_BASE_URL=drupal.docker.localhost

DB_NAME=drupal DB_USER=drupal DB_PASSWORD=drupal DB_ROOT_PASSWORD=password DB_HOST=mariadb DB_PORT=3306 DB_DRIVER=mysql

--- MARIADB ----

MARIADB_TAG=10.6-3.15.0

MARIADB_TAG=10.5-3.15.0

MARIADB_TAG=10.4-3.15.0

MARIADB_TAG=10.3-3.15.0

--- VANILLA DRUPAL ----

DRUPAL_TAG=9-4.37.0

DRUPAL_TAG=8-4.37.0

DRUPAL_TAG=7-4.37.0

--- PHP ----

Linux (uid 1000 gid 1000)

PHP_TAG=7.4-dev-4.29.7

PHP_TAG=8.0-dev-4.29.7

PHP_TAG=7.3-dev-4.29.7

NO_PROXY=localhost,127.0.0.1,.dgfip,.impots,172.16.32.15 HTTP_PROXY=http://10.154.61.3:3128/ HTTPS_PROXY=http://10.154.61.3:3128/ FTP_PROXY=http://10.154.61.3:3128/

macOS (uid 501 gid 20)

PHP_TAG=8.0-dev-macos-4.29.7

PHP_TAG=7.4-dev-macos-4.29.7

PHP_TAG=7.3-dev-macos-4.29.7

--- NGINX ----

NGINX_TAG=1.21-5.17.0

NGINX_TAG=1.20-5.17.0

NGINX_TAG=1.19-5.17.0

NGINX_VHOST_PRESET=drupal9

NGINX_VHOST_PRESET=drupal8

NGINX_VHOST_PRESET=drupal7

--- SOLR ---

SOLR_CONFIG_SET="search_api_solr_4.1.6"

SOLR_CONFIG_SET="search_api_solr_4.0.1"

SOLR_CONFIG_SET="search_api_solr_8.x-3.9"

SOLR_CONFIG_SET="search_api_solr_8.x-3.2"

SOLR_CONFIG_SET="search_api_solr_8.x-2.7"

SOLR_CONFIG_SET="search_api_solr_8.x-1.2"

SOLR_CONFIG_SET="search_api_solr_7.x-1.14"

SOLR_TAG=8-4.13.0

SOLR_TAG=7-4.13.0

SOLR_TAG=6-4.13.0

SOLR_TAG=5-4.13.0

--- ELASTICSEARCH ---

ELASTICSEARCH_TAG=7-5.14.0

ELASTICSEARCH_TAG=6-5.14.0

--- KIBANA ---

KIBANA_TAG=7-5.14.0

KIBANA_TAG=6-5.14.0

--- REDIS ---

REDIS_TAG=6-3.10.0

REDIS_TAG=5-3.10.0

--- NODE ---

NODE_TAG=16-dev-0.97.1

NODE_TAG=14-dev-0.97.1

NODE_TAG=12-dev-0.97.1

--- VARNISH ---

VARNISH_TAG=6.0-4.7.8

VARNISH_TAG=4.1-4.7.8

--- POSTGRESQL ----

POSTGRES_TAG=14-1.24.0

POSTGRES_TAG=13-1.24.0

POSTGRES_TAG=12-1.24.0

POSTGRES_TAG=11-1.24.0

POSTGRES_TAG=10-1.24.0

POSTGRES_TAG=9.6-1.24.0

OTHERS

ADMINER_TAG=4-3.17.0 APACHE_TAG=2.4-4.7.0 ATHENAPDF_TAG=2.16.0 DRUPAL_NODE_TAG=1.0-2.0.0 MEMCACHED_TAG=1-2.10.0 OPENSMTPD_TAG=6.0-1.10.4 RSYSLOG_TAG=latest SELENIUM_CHROME_TAG=3.141 WEBGRIND_TAG=1-1.22.0 XHPROF_TAG=3.0.5


**Logs output `docker-compose logs`**

Attaching to my_drupal9_project_apache, my_drupal9_project_mailhog, my_drupal9_project_crond, my_drupal9_project_php, my_drupal9_project_traefik, my_drupal9_project_pma, my_drupal9_project_mariadb my_drupal9_project_apache | [Tue Dec 21 14:33:57.968534 2021] [ssl:info] [pid 1:tid 140522072398664] AH01883: Init: Initialized OpenSSL library my_drupal9_project_apache | [Tue Dec 21 14:33:57.968580 2021] [ssl:info] [pid 1:tid 140522072398664] AH01887: Init: Initializing (virtual) servers for SSL my_drupal9_project_apache | [Tue Dec 21 14:33:57.968587 2021] [ssl:info] [pid 1:tid 140522072398664] AH01876: mod_ssl/2.4.51 compiled against Server: Apache/2.4.51, Library: OpenSSL/1.1.1l my_drupal9_project_apache | [Tue Dec 21 14:33:57.968631 2021] [http2:debug] [pid 1:tid 140522072398664] mod_http2.c(112): AH03089: initializing post config dry run my_drupal9_project_apache | [Tue Dec 21 14:33:57.970702 2021] [ssl:info] [pid 1:tid 140522072398664] AH01883: Init: Initialized OpenSSL library my_drupal9_project_apache | [Tue Dec 21 14:33:57.970721 2021] [ssl:warn] [pid 1:tid 140522072398664] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache] my_drupal9_project_apache | [Tue Dec 21 14:33:57.970725 2021] [ssl:info] [pid 1:tid 140522072398664] AH01887: Init: Initializing (virtual) servers for SSL my_drupal9_project_apache | [Tue Dec 21 14:33:57.970730 2021] [ssl:info] [pid 1:tid 140522072398664] AH01876: mod_ssl/2.4.51 compiled against Server: Apache/2.4.51, Library: OpenSSL/1.1.1l my_drupal9_project_apache | [Tue Dec 21 14:33:57.970774 2021] [http2:info] [pid 1:tid 140522072398664] AH03090: mod_http2 (v1.15.24, feats=CHPRIO+SHA256+INVHD+DWINS, nghttp2 1.42.0), initializing... my_drupal9_project_apache | [Tue Dec 21 14:33:57.970865 2021] [ldap:debug] [pid 1:tid 140522072398664] util_ldap.c(3002): AH01316: LDAP merging Shared Cache conf: shm=0x7fcdd8168cf0 rmm=0x7fcdd8168d48 for VHOST: default my_drupal9_project_apache | [Tue Dec 21 14:33:57.970987 2021] [ldap:info] [pid 1:tid 140522072398664] AH01318: APR LDAP: Built with OpenLDAP LDAP SDK my_drupal9_project_apache | [Tue Dec 21 14:33:57.971000 2021] [ldap:info] [pid 1:tid 140522072398664] AH01319: LDAP: SSL support available my_drupal9_project_apache | [Tue Dec 21 14:33:57.971716 2021] [proxy_http2:info] [pid 1:tid 140522072398664] AH03349: mod_proxy_http2 (v1.15.24, nghttp2 1.42.0), initializing... my_drupal9_project_apache | [Tue Dec 21 14:33:57.972688 2021] [mpm_event:notice] [pid 1:tid 140522072398664] AH00489: Apache/2.4.51 (Unix) OpenSSL/1.1.1l configured -- resuming normal operations my_drupal9_project_apache | [Tue Dec 21 14:33:57.972703 2021] [mpm_event:info] [pid 1:tid 140522072398664] AH00490: Server built: Nov 26 2021 08:57:27 my_drupal9_project_apache | [Tue Dec 21 14:33:57.972712 2021] [core:notice] [pid 1:tid 140522072398664] AH00094: Command line: 'httpd -D FOREGROUND' my_drupal9_project_apache | [Tue Dec 21 14:33:57.972715 2021] [core:debug] [pid 1:tid 140522072398664] log.c(1570): AH02639: Using SO_REUSEPORT: yes (1) my_drupal9_project_apache | [Tue Dec 21 14:33:57.973034 2021] [http2:debug] [pid 26:tid 140522072398664] h2_workers.c(394): h2_workers: created with min=25 max=37 idle_timeout=600 sec my_drupal9_project_apache | [Tue Dec 21 14:33:57.973648 2021] [proxy:debug] [pid 26:tid 140522072398664] proxy_util.c(2117): AH00925: initializing worker proxy:reverse shared my_drupal9_project_apache | [Tue Dec 21 14:33:57.973663 2021] [proxy:debug] [pid 26:tid 140522072398664] proxy_util.c(2177): AH00927: initializing worker proxy:reverse local my_drupal9_project_apache | [Tue Dec 21 14:33:57.973672 2021] [proxy:debug] [pid 26:tid 140522072398664] proxy_util.c(2208): AH00930: initialized pool in child 26 for () min=0 max=61 smax=61 my_drupal9_project_apache | [Tue Dec 21 14:33:57.973677 2021] [proxy:debug] [pid 26:tid 140522072398664] proxy_util.c(2117): AH00925: initializing worker fcgi://php:9000/ shared my_drupal9_project_apache | [Tue Dec 21 14:33:57.973684 2021] [proxy:debug] [pid 26:tid 140522072398664] proxy_util.c(2177): AH00927: initializing worker fcgi://php:9000/ local my_drupal9_project_apache | [Tue Dec 21 14:33:57.974043 2021] [http2:debug] [pid 25:tid 140522072398664] h2_workers.c(394): h2_workers: created with min=25 max=37 idle_timeout=600 sec my_drupal9_project_apache | [Tue Dec 21 14:33:57.974110 2021] [proxy:debug] [pid 26:tid 140522072398664] proxy_util.c(2208): AH00930: initialized pool in child 26 for (php) min=0 max=61 smax=61 my_drupal9_project_apache | [Tue Dec 21 14:33:57.974757 2021] [proxy:debug] [pid 25:tid 140522072398664] proxy_util.c(2117): AH00925: initializing worker proxy:reverse shared my_drupal9_project_apache | [Tue Dec 21 14:33:57.974772 2021] [proxy:debug] [pid 25:tid 140522072398664] proxy_util.c(2177): AH00927: initializing worker proxy:reverse local my_drupal9_project_apache | [Tue Dec 21 14:33:57.974782 2021] [proxy:debug] [pid 25:tid 140522072398664] proxy_util.c(2208): AH00930: initialized pool in child 25 for () min=0 max=61 smax=61 my_drupal9_project_apache | [Tue Dec 21 14:33:57.974787 2021] [proxy:debug] [pid 25:tid 140522072398664] proxy_util.c(2117): AH00925: initializing worker fcgi://php:9000/ shared my_drupal9_project_apache | [Tue Dec 21 14:33:57.974792 2021] [proxy:debug] [pid 25:tid 140522072398664] proxy_util.c(2177): AH00927: initializing worker fcgi://php:9000/ local my_drupal9_project_apache | [Tue Dec 21 14:33:57.974831 2021] [proxy:debug] [pid 25:tid 140522072398664] proxy_util.c(2208): AH00930: initialized pool in child 25 for (php) min=0 max=61 smax=61 my_drupal9_project_apache | [Tue Dec 21 14:33:57.975033 2021] [mpm_event:debug] [pid 26:tid 140522058922808] event.c(2363): AH02471: start_threads: Using epoll (wakeable) my_drupal9_project_apache | [Tue Dec 21 14:33:57.975424 2021] [http2:debug] [pid 24:tid 140522072398664] h2_workers.c(394): h2_workers: created with min=25 max=37 idle_timeout=600 sec my_drupal9_project_apache | [Tue Dec 21 14:33:57.976454 2021] [proxy:debug] [pid 24:tid 140522072398664] proxy_util.c(2117): AH00925: initializing worker proxy:reverse shared my_drupal9_project_apache | [Tue Dec 21 14:33:57.976472 2021] [proxy:debug] [pid 24:tid 140522072398664] proxy_util.c(2177): AH00927: initializing worker proxy:reverse local my_drupal9_project_apache | [Tue Dec 21 14:33:57.976481 2021] [proxy:debug] [pid 24:tid 140522072398664] proxy_util.c(2208): AH00930: initialized pool in child 24 for () min=0 max=61 smax=61 my_drupal9_project_apache | [Tue Dec 21 14:33:57.976486 2021] [proxy:debug] [pid 24:tid 140522072398664] proxy_util.c(2117): AH00925: initializing worker fcgi://php:9000/ shared my_drupal9_project_apache | [Tue Dec 21 14:33:57.976492 2021] [proxy:debug] [pid 24:tid 140522072398664] proxy_util.c(2177): AH00927: initializing worker fcgi://php:9000/ local my_drupal9_project_apache | [Tue Dec 21 14:33:57.976602 2021] [mpm_event:debug] [pid 25:tid 140522058922808] event.c(2363): AH02471: start_threads: Using epoll (wakeable) my_drupal9_project_apache | [Tue Dec 21 14:33:57.977106 2021] [proxy:debug] [pid 24:tid 140522072398664] proxy_util.c(2208): AH00930: initialized pool in child 24 for (php) min=0 max=61 smax=61 my_drupal9_project_apache | [Tue Dec 21 14:33:57.977556 2021] [mpm_event:debug] [pid 24:tid 140522058922808] event.c(2363): AH02471: start_threads: Using epoll (wakeable) my_drupal9_project_crond | crond: crond (busybox 1.32.1) started, log level 0 my_drupal9_project_crond | crond: user:www-data entry:0 drush -r /var/www/html/web cron my_drupal9_project_crond | 100000000000000000000000000000000000000000000000000000000000 my_drupal9_project_crond | 111111111111111111111111 my_drupal9_project_crond | 11111111111111111111111111111111 my_drupal9_project_crond | 111111111111 my_drupal9_project_crond | 1111111 my_drupal9_project_crond | crond: user:www-data entry:0 * drush -r /var/www/html/web cron my_drupal9_project_crond | 100000000000000000000000000000000000000000000000000000000000 my_drupal9_project_crond | 111111111111111111111111 my_drupal9_project_crond | 11111111111111111111111111111111 my_drupal9_project_crond | 111111111111 my_drupal9_project_crond | 1111111 my_drupal9_project_crond | crond: wakeup dt=7 my_drupal9_project_crond | crond: file www-data: my_drupal9_project_crond | crond: line drush -r /var/www/html/web cron my_drupal9_project_crond | crond: wakeup dt=60 my_drupal9_project_crond | crond: file www-data: my_drupal9_project_crond | crond: line drush -r /var/www/html/web cron my_drupal9_project_crond | crond: wakeup dt=60 my_drupal9_project_crond | crond: file www-data: my_drupal9_project_crond | crond: line drush -r /var/www/html/web cron my_drupal9_project_crond | crond: wakeup dt=60 my_drupal9_project_crond | crond: file www-data: my_drupal9_project_crond | crond: line drush -r /var/www/html/web cron my_drupal9_project_crond | crond: wakeup dt=60 my_drupal9_project_crond | crond: file www-data: my_drupal9_project_crond | crond: line drush -r /var/www/html/web cron my_drupal9_project_crond | crond: wakeup dt=60 my_drupal9_project_crond | crond: file www-data: my_drupal9_project_crond | crond: line drush -r /var/www/html/web cron my_drupal9_project_crond | crond: wakeup dt=60 my_drupal9_project_crond | crond: file www-data: my_drupal9_project_crond | crond: line drush -r /var/www/html/web cron my_drupal9_project_crond | crond: wakeup dt=60 my_drupal9_project_crond | crond: file www-data: my_drupal9_project_crond | crond: line drush -r /var/www/html/web cron my_drupal9_project_crond | crond: wakeup dt=60 my_drupal9_project_crond | crond: file www-data: my_drupal9_project_crond | crond: line drush -r /var/www/html/web cron my_drupal9_project_crond | crond: wakeup dt=60 my_drupal9_project_crond | crond: file www-data: my_drupal9_project_crond | crond: line drush -r /var/www/html/web cron my_drupal9_project_crond | crond: wakeup dt=60 my_drupal9_project_crond | crond: file www-data: my_drupal9_project_crond | crond: line drush -r /var/www/html/web cron my_drupal9_project_crond | crond: wakeup dt=60 my_drupal9_project_crond | crond: file www-data: my_drupal9_project_crond | crond: line drush -r /var/www/html/web cron my_drupal9_project_crond | crond: wakeup dt=60 my_drupal9_project_crond | crond: file www-data: my_drupal9_project_crond | crond: line drush -r /var/www/html/web cron my_drupal9_project_crond | crond: wakeup dt=60 my_drupal9_project_crond | crond: file www-data: my_drupal9_project_crond | crond: line drush -r /var/www/html/web cron my_drupal9_project_mailhog | 2021/12/21 14:33:54 Using in-memory storage my_drupal9_project_mailhog | 2021/12/21 14:33:54 [SMTP] Binding to address: 0.0.0.0:1025 my_drupal9_project_mailhog | 2021/12/21 14:33:54 Serving under http://0.0.0.0:8025/ my_drupal9_project_mailhog | [HTTP] Binding to address: 0.0.0.0:8025 my_drupal9_project_mailhog | Creating API v1 with WebPath: my_drupal9_project_mailhog | Creating API v2 with WebPath: my_drupal9_project_mailhog | [APIv1] KEEPALIVE /api/v1/events my_drupal9_project_mailhog | [APIv1] KEEPALIVE /api/v1/events my_drupal9_project_mailhog | [APIv1] KEEPALIVE /api/v1/events my_drupal9_project_mailhog | [APIv1] KEEPALIVE /api/v1/events my_drupal9_project_mailhog | [APIv1] KEEPALIVE /api/v1/events my_drupal9_project_mailhog | [APIv1] KEEPALIVE /api/v1/events my_drupal9_project_mailhog | [APIv1] KEEPALIVE /api/v1/events my_drupal9_project_mailhog | [APIv1] KEEPALIVE /api/v1/events my_drupal9_project_mailhog | [APIv1] KEEPALIVE /api/v1/events my_drupal9_project_mailhog | [APIv1] KEEPALIVE /api/v1/events my_drupal9_project_mailhog | [APIv1] KEEPALIVE /api/v1/events my_drupal9_project_mailhog | [APIv1] KEEPALIVE /api/v1/events my_drupal9_project_mailhog | [APIv1] KEEPALIVE /api/v1/events my_drupal9_project_mariadb | 2021-12-21T14:33:59+0000 [Note] [Entrypoint]: Entrypoint script for MySQL Server started. my_drupal9_project_mariadb | 2021-12-21T14:33:59+0000 [Note] [Entrypoint]: Initializing database files my_drupal9_project_mariadb | 2021-12-21 14:33:59 0 [Warning] 'innodb-buffer-pool-instances' was removed. It does nothing now and exists only for compatibility with old my.cnf files. my_drupal9_project_mariadb | 2021-12-21 14:33:59 0 [Warning] 'innodb-log-files-in-group' was removed. It does nothing now and exists only for compatibility with old my.cnf files. my_drupal9_project_mariadb | my_drupal9_project_mariadb | my_drupal9_project_mariadb | PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER ! my_drupal9_project_mariadb | To do so, start the server, then issue the following command: my_drupal9_project_mariadb | my_drupal9_project_mariadb | '/usr/bin/mysql_secure_installation' my_drupal9_project_mariadb | my_drupal9_project_mariadb | which will also give you the option of removing the test my_drupal9_project_mariadb | databases and anonymous user created by default. This is my_drupal9_project_mariadb | strongly recommended for production servers. my_drupal9_project_mariadb | my_drupal9_project_mariadb | See the MariaDB Knowledgebase at https://mariadb.com/kb or the my_drupal9_project_mariadb | MySQL manual for more instructions. my_drupal9_project_mariadb | my_drupal9_project_mariadb | Please report any problems at https://mariadb.org/jira my_drupal9_project_mariadb | my_drupal9_project_mariadb | The latest information about MariaDB is available at https://mariadb.org/. my_drupal9_project_mariadb | You can find additional information about the MySQL part at: my_drupal9_project_mariadb | https://dev.mysql.com my_drupal9_project_mariadb | Consider joining MariaDB's strong and vibrant community: my_drupal9_project_mariadb | https://mariadb.org/get-involved/ my_drupal9_project_mariadb | my_drupal9_project_mariadb | 2021-12-21T14:34:21+0000 [Note] [Entrypoint]: Database files initialized my_drupal9_project_mariadb | 2021-12-21T14:34:21+0000 [Note] [Entrypoint]: Starting temporary server my_drupal9_project_mariadb | 2021-12-21T14:34:21+0000 [Note] [Entrypoint]: Waiting for server startup my_drupal9_project_mariadb | 2021-12-21 14:34:21 0 [Note] mysqld (server 10.6.5-MariaDB) starting as process 90 ... my_drupal9_project_mariadb | 2021-12-21 14:34:21 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 my_drupal9_project_mariadb | 2021-12-21 14:34:21 0 [Note] InnoDB: Number of pools: 1 my_drupal9_project_mariadb | 2021-12-21 14:34:21 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions my_drupal9_project_mariadb | 2021-12-21 14:34:21 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts) my_drupal9_project_mariadb | 2021-12-21 14:34:21 0 [Note] InnoDB: Using Linux native AIO my_drupal9_project_mariadb | 2021-12-21 14:34:21 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728 my_drupal9_project_mariadb | 2021-12-21 14:34:21 0 [Note] InnoDB: Completed initialization of buffer pool my_drupal9_project_mariadb | 2021-12-21 14:34:21 0 [Note] InnoDB: 128 rollback segments are active. my_drupal9_project_mariadb | 2021-12-21 14:34:21 0 [Note] InnoDB: Creating shared tablespace for temporary tables my_drupal9_project_mariadb | 2021-12-21 14:34:21 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... my_drupal9_project_mariadb | 2021-12-21 14:34:21 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB. my_drupal9_project_mariadb | 2021-12-21 14:34:21 0 [Note] InnoDB: 10.6.5 started; log sequence number 42167; transaction id 14 my_drupal9_project_mariadb | 2021-12-21 14:34:21 0 [Note] Plugin 'FEEDBACK' is disabled. my_drupal9_project_mariadb | 2021-12-21 14:34:21 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool my_drupal9_project_mariadb | 2021-12-21 14:34:21 0 [Warning] 'innodb-buffer-pool-instances' was removed. It does nothing now and exists only for compatibility with old my.cnf files. my_drupal9_project_mariadb | 2021-12-21 14:34:21 0 [Warning] 'innodb-log-files-in-group' was removed. It does nothing now and exists only for compatibility with old my.cnf files. my_drupal9_project_mariadb | 2021-12-21 14:34:21 0 [Note] InnoDB: Buffer pool(s) load completed at 211221 14:34:21 my_drupal9_project_mariadb | 2021-12-21 14:34:21 0 [Warning] 'user' entry 'root@dafb1244405b' ignored in --skip-name-resolve mode. my_drupal9_project_mariadb | 2021-12-21 14:34:21 0 [Warning] 'proxies_priv' entry '@% root@dafb1244405b' ignored in --skip-name-resolve mode. my_drupal9_project_mariadb | 2021-12-21 14:34:21 0 [Note] mysqld: ready for connections. my_drupal9_project_mariadb | Version: '10.6.5-MariaDB' socket: '/var/run/mysqld/mysqld.sock' port: 0 MariaDB Server my_drupal9_project_mariadb | 2021-12-21T14:34:22+0000 [Note] [Entrypoint]: Temporary server started. my_drupal9_project_mariadb | 2021-12-21 14:34:29 5 [Warning] 'proxies_priv' entry '@% root@dafb1244405b' ignored in --skip-name-resolve mode. my_drupal9_project_mariadb | 2021-12-21T14:34:29+0000 [Note] [Entrypoint]: Creating database drupal my_drupal9_project_mariadb | 2021-12-21T14:34:29+0000 [Note] [Entrypoint]: Creating user drupal my_drupal9_project_mariadb | 2021-12-21T14:34:29+0000 [Note] [Entrypoint]: Giving user drupal access to schema drupal my_drupal9_project_mariadb | my_drupal9_project_mariadb | 2021-12-21T14:34:29+0000 [Note] [Entrypoint]: Stopping temporary server my_drupal9_project_mariadb | 2021-12-21 14:34:29 0 [Note] mysqld (initiated by: root[root] @ localhost []): Normal shutdown my_drupal9_project_mariadb | 2021-12-21 14:34:29 0 [Note] InnoDB: FTS optimize thread exiting. my_drupal9_project_mariadb | 2021-12-21 14:34:29 0 [Note] InnoDB: Starting shutdown... my_drupal9_project_mariadb | 2021-12-21 14:34:29 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool my_drupal9_project_mariadb | 2021-12-21 14:34:29 0 [Note] InnoDB: Buffer pool(s) dump completed at 211221 14:34:29 my_drupal9_project_mariadb | 2021-12-21 14:34:30 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1" my_drupal9_project_mariadb | 2021-12-21 14:34:30 0 [Note] InnoDB: Shutdown completed; log sequence number 42179; transaction id 15 my_drupal9_project_mariadb | 2021-12-21 14:34:30 0 [Note] mysqld: Shutdown complete my_drupal9_project_mariadb | my_drupal9_project_mariadb | 2021-12-21T14:34:30+0000 [Note] [Entrypoint]: Temporary server stopped my_drupal9_project_mariadb | my_drupal9_project_mariadb | 2021-12-21T14:34:30+0000 [Note] [Entrypoint]: MySQL init process done. Ready for start up. my_drupal9_project_mariadb | my_drupal9_project_mariadb | 2021-12-21 14:34:30 0 [Note] mysqld (server 10.6.5-MariaDB) starting as process 1 ... my_drupal9_project_mariadb | 2021-12-21 14:34:30 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 my_drupal9_project_mariadb | 2021-12-21 14:34:30 0 [Note] InnoDB: Number of pools: 1 my_drupal9_project_mariadb | 2021-12-21 14:34:30 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions my_drupal9_project_mariadb | 2021-12-21 14:34:30 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts) my_drupal9_project_mariadb | 2021-12-21 14:34:30 0 [Note] InnoDB: Using Linux native AIO my_drupal9_project_mariadb | 2021-12-21 14:34:30 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728 my_drupal9_project_mariadb | 2021-12-21 14:34:30 0 [Note] InnoDB: Completed initialization of buffer pool my_drupal9_project_mariadb | 2021-12-21 14:34:30 0 [Note] InnoDB: 128 rollback segments are active. my_drupal9_project_mariadb | 2021-12-21 14:34:30 0 [Note] InnoDB: Creating shared tablespace for temporary tables my_drupal9_project_mariadb | 2021-12-21 14:34:30 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... my_drupal9_project_mariadb | 2021-12-21 14:34:30 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB. my_drupal9_project_mariadb | 2021-12-21 14:34:30 0 [Note] InnoDB: 10.6.5 started; log sequence number 42179; transaction id 14 my_drupal9_project_mariadb | 2021-12-21 14:34:30 0 [Note] Plugin 'FEEDBACK' is disabled. my_drupal9_project_mariadb | 2021-12-21 14:34:30 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool my_drupal9_project_mariadb | 2021-12-21 14:34:30 0 [Warning] 'innodb-buffer-pool-instances' was removed. It does nothing now and exists only for compatibility with old my.cnf files. my_drupal9_project_mariadb | 2021-12-21 14:34:30 0 [Warning] 'innodb-log-files-in-group' was removed. It does nothing now and exists only for compatibility with old my.cnf files. my_drupal9_project_mariadb | 2021-12-21 14:34:31 0 [Note] Server socket created on IP: '0.0.0.0'. my_drupal9_project_mariadb | 2021-12-21 14:34:31 0 [Warning] 'proxies_priv' entry '@% root@dafb1244405b' ignored in --skip-name-resolve mode. my_drupal9_project_mariadb | 2021-12-21 14:34:31 0 [Note] InnoDB: Buffer pool(s) load completed at 211221 14:34:31 my_drupal9_project_mariadb | 2021-12-21 14:34:31 0 [Note] mysqld: ready for connections. my_drupal9_project_mariadb | Version: '10.6.5-MariaDB' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MariaDB Server my_drupal9_project_php | [21-Dec-2021 14:33:54] NOTICE: fpm is running, pid 1 my_drupal9_project_php | [21-Dec-2021 14:33:54] NOTICE: ready to handle connections my_drupal9_project_pma | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.21.0.2. Set the 'ServerName' directive globally to suppress this message my_drupal9_project_pma | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.21.0.2. Set the 'ServerName' directive globally to suppress this message my_drupal9_project_pma | [Tue Dec 21 14:33:53.309724 2021] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.38 (Debian) PHP/7.4.20 configured -- resuming normal operations my_drupal9_project_pma | [Tue Dec 21 14:33:53.309859 2021] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND' my_drupal9_project_traefik | time="2021-12-21T14:33:57Z" level=info msg="Configuration loaded from flags."

alexxandres commented 1 year ago

Hi @javaskater , I have a similar problem. I can see it's been almost 2y it is open. Did you manage to solve it please?

csandanov commented 1 year ago

@alexxandres have you added it to /etc/hosts?

alexxandres commented 1 year ago

@csandanov thank you for your answer ; actually I've just found "the" fix, thanks to my colleague:

He suspected the error was actually "sent" by Traefik. We saw Traefik has proxy configuration set as specified in ~/.docker/config.json (global conf for any container)

So we added environment variables to "cancel" proxy for Traefik as followed in docker compose file (or override):

traefik:
    <...>
    environment:
      HTTP_PROXY: ''
      HTTPS_PROXY: ''
      NO_PROXY: ''
      http_proxy: ''
      https_proxy: ''
      no_proxy: ''
   <...>   

EDIT: replaced "'~" by "''"