Git Product home page Git Product logo

docker4php's People

Contributors

brianv avatar csandanov avatar pprishchepa avatar wodbot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker4php's Issues

Cannot get Mutagen to work on

I'm trying to follow the steps on how to use Mutagen, but on step 3 i run

docker-compose up -d mutagen

but I get "No such service: mutagen".

Not sure what I'm doing wrong. Previously I had docker-sync running without any issue.

Any help would be appreciated.

Setup datadog/agent:latest example

Hi,

I'm trying to add datadog/agent:latest container to this stack to enable profiling on PHP.
When i use this setup : https://github.com/DataDog/docker-compose-example it doesn't seem to work.

So i was wondering if I'm doing something wrong or forgetting some thing.
It seem to connect since first i got an invalid api key warning back.

After fixing de DD_SITE: datadoghq.eu the warning went away and now i get :

Screenshot 2023-06-17 at 13 40 50

I was just wondering i maybe you got any idea's or i forgot something ?
Or maybe add an example setup like you did with phpmyadmin, mailhog, ...

Some problems upon working with Laravel

Hello.
I'm a novice in docker.
I need to work with Laravel using docker-compose and I decided to use this solution. I managed to set up containers and install Laravel.
But I encountered some problems.

  1. An error. "The stream or file "laravel.log" could not be opened: failed to open stream: Permission denied". I don't know how to solve it correctly without forcibly setting rights as 777.
  2. Could you clarify me, how can I get into the running container via my terminal? I mean I need to type "php -v" or "php artisan" in my terminal and it should work correctly. How can I do it?

Is there a way to make a named volume 'writable'?

For my Symfony site, I would like for the symfony cache to be a named volume. I think having it a part of my main workspace volume is causing occasional caching errors. But when I create a named volume I am given an error that the cache directory is not writable. Which I presume is because FPM is running as wodby and not root. Is there a way I can accomplish the goal of making the 'cache' be in docker only?

Host OS

macOS Monterey

Docker info output

Client:
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc., v0.7.1)
  compose: Docker Compose (Docker Inc., v2.2.3)
  scan: Docker Scan (Docker Inc., v0.16.0)

Server:
 Containers: 9
  Running: 7
  Paused: 0
  Stopped: 2
 Images: 19
 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: 2
 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:
  seccomp
   Profile: default
  cgroupns
 Kernel Version: 5.10.76-linuxkit
 Operating System: Docker Desktop
 OSType: linux
 Architecture: aarch64
 CPUs: 5
 Total Memory: 1.942GiB
 Name: docker-desktop
 ID: BBRN:Y74T:T3HJ:AWYW:NO67:2DFV:AM7U:A2TK:VHHC:D3BE:SSJT:CHNC
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

Docker compose file

version: "3"

services:
  ...
  php:
    image: wodby/php:$PHP_TAG
    container_name: "${PROJECT_NAME}_php"
    environment:
      PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mailhog:1025
      MAILER_DSN: smtp://mailhog:1025
      DB_HOST: $DB_HOST
      TEST_DB_HOST: $TEST_DB_HOST
      DB_USER: $DB_USER
      DB_PASSWORD: $DB_PASSWORD
      DB_NAME: $DB_NAME
      PHP_FPM_USER: wodby
      PHP_FPM_GROUP: wodby
      DOCKER: 1
      APP_ENV: dev
      APP_DEBUG: 1
      COMPOSER_MEMORY_LIMIT: -1
      COMPOSER_PROCESS_TIMEOUT: 1200
      # PHP_XDEBUG: 1
      PHP_XDEBUG_MODE: debug
      PHP_XDEBUG_CLIENT_HOST: host.docker.internal # Docker 18.03+ Mac/Win
    volumes:
      - ./backend/:/var/www/html:cached
      - ./backend/tests/:/var/www/html/backend/tests
      - wb_backend_cache:/var/www/html/var/cache
    ...

  volumes:
    wb_backend_cache:

Logs output

  [RuntimeException]                                                     

  Unable to create the "cache" directory (/var/www/html/var/cache/dev).  

Php xdebug with traefik configuration

Codebase

Host OS

e.g. macOS Sierra
macOS Mojave 10.14.6

Docker info output

Client:
 Debug Mode: false

Server:
 Containers: 27
  Running: 7
  Paused: 0
  Stopped: 20
 Images: 96
 Server Version: 19.03.4
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 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: runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: b34a5c8af56e510852c35414db4c1f4fa6172339
 runc version: 3e425f80a8c931f88e6d94a8c831b9d5aa481657
 init version: fec3683
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 4.9.184-linuxkit
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 1.952GiB
 Name: docker-desktop
 ID: 6YM6:LMGB:PQ2E:LXSH:24FU:CQ7H:5MVG:TIVF:H5UB:7DEI:72DW:BGT2
 Docker Root Dir: /var/lib/docker
 Debug Mode: true
  File Descriptors: 84
  Goroutines: 89
  System Time: 2019-10-29T14:35:25.592707274Z
  EventsListeners: 3
 HTTP Proxy: gateway.docker.internal:3128
 HTTPS Proxy: gateway.docker.internal:3129
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false
 Product License: Community Engine

nginx:
image: wodby/nginx
container_name: "simple-service-2"
environment:
NGINX_SERVER_ROOT: /var/www/html/public
NGINX_ERROR_LOG_LEVEL: debug
NGINX_BACKEND_HOST: php
NGINX_VHOST_PRESET: php
NGINX_FASTCGI_INDEX: index.php
labels:
- "traefik.http.routers.nginx_test.rule=Host(nginx.docker.localhost)"
- "traefik.http.routers.nginx_test.entrypoints=web"
volumes:
- ./.docker/nginx:/var/www/html/public:rw
depends_on:
- php

php:
image: wodby/php:7.3
container_name: "simple-service-3"
environment:
PHP_FPM_CLEAR_ENV: "no"
PHP_XDEBUG: 1
PHP_XDEBUG_DEFAULT_ENABLE: 1
PHP_XDEBUG_REMOTE_CONNECT_BACK: 0
PHP_XDEBUG_IDEKEY: "vscode"
PHP_IDE_CONFIG: serverName=vscode
PHP_FPM_USER: wodby
PHP_FPM_GROUP: wodby
PHP_XDEBUG_REMOTE_HOST: host.docker.internal
PHP_XDEBUG_REMOTE_LOG: /tmp/php-xdebug.log
volumes:
- ./.docker/nginx:/var/www/html/public:rw

networks:
traefik_proxy:
driver: bridge
name: traefik_proxy


### Logs output

simple-service-3 | [29-Oct-2019 14:33:41] NOTICE: fpm is running, pid 1
simple-service-3 | [29-Oct-2019 14:33:41] NOTICE: ready to handle connections
simple-service-3 | 172.21.0.5 - 29/Oct/2019:14:33:45 +0000 "GET /index.php" 200
simple-service-3 | 172.21.0.5 - 29/Oct/2019:14:33:47 +0000 "GET /index.php" 200
simple-service-3 | 172.21.0.5 - 29/Oct/2019:14:55:16 +0000 "GET /index.php" 200
simple-service-3 | 172.21.0.5 - 29/Oct/2019:14:56:26 +0000 "GET /index.php" 200

php-xdebug.log:

[85] Log opened at 2019-10-29 14:56:26
[85] I: Connecting to configured address/port: host.docker.internal:9000.
[85] I: Connected to client. :-)
[85] ->
[85]
[85] ->
[85]
[85] Log closed at 2019-10-29 14:56:26
[85]


But debug in Visual Studio Code doesn't work

"XDebug could not open the remote debug file '/tmp/xdebug.log'."

Sorry, I don't want to collect debug info because there is a solution found already.

Problem

When xDebug enabled and run any drush command always get error messags:

XDebug could not open the remote debug file '/tmp/xdebug-remote.log'.

Reasons

/tmp/php5-xdebug.log not exists until you start debugging session in IDE and reload page in browser. Only then this file will be created.
When I enable xDebug and run any drush command (which is CLI) I got this error.

Solution

Source: geerlingguy/drupal-vm#1813
In Dockerfile you can append this to a RUN command

    # xdebug cannot write to it's log
    && touch /tmp/php-xdebug.log \
    && chown www-data:www-data /tmp/php-xdebug.log \
    && chmod 666 /tmp/php-xdebug.log

Could you please add this temp file creation to Dockerfile?

XDebug not stopping at my breakpoints

Codebase

Mounted codebase

Host OS

Windows 10

Docker info output

Client:
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Build with BuildKit (Docker Inc., v0.6.1-docker)
  compose: Docker Compose (Docker Inc., v2.0.0-rc.3)
  scan: Docker Scan (Docker Inc., v0.8.0)

Server:
 Containers: 58
  Running: 15
  Paused: 0
  Stopped: 43
 Images: 39
 Server Version: 20.10.8
 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.runtime.v1.linux runc io.containerd.runc.v2
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: e25210fe30a0a703442421b0f60afac609f950a3
 runc version: v1.0.1-0-g4144b63
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 5.10.47-linuxkit
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 3.841GiB
 Name: docker-desktop
 ID: 5W5X:WCV7:6ONG:YAW6:VSCQ:TZQZ:HUAN:B2A3:L34L:BONP:F37T:PGK4
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

Docker compose file

version: "3"

services:
  mssql:
    image: mcr.microsoft.com/mssql/server:2019-latest
    container_name: "${DOCKER_PROJECT_NAME}_mssql"
    user: root
    environment:
      ACCEPT_EULA: 'Y'
      MSSQL_SA_PASSWORD: $DATABASE_PASS
    ports:
    - "1433:1433"
    volumes:
    - mssql-volume:/var/opt/mssql/data

  mailhog:
    image: mailhog/mailhog
    container_name: "${DOCKER_PROJECT_NAME}_mailhog"
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.${DOCKER_PROJECT_NAME}_mailhog.rule=Host(`mailhog.${DOCKER_PROJECT_URL}`)"
      - "traefik.http.routers.${DOCKER_PROJECT_NAME}_mailhog.entrypoints=websecure"
      - "traefik.http.routers.${DOCKER_PROJECT_NAME}_mailhog.tls.certresolver=myresolver"
      - "traefik.http.services.${DOCKER_PROJECT_NAME}_mailhog.loadbalancer.server.port=8025"

  nginx_backend:
    image: wodby/nginx:1.19
    container_name: "${DOCKER_PROJECT_NAME}_nginx_backend"
    depends_on:
      - php
    environment:
      NGINX_BACKEND_HOST: php
      NGINX_ERROR_LOG_LEVEL: debug
      NGINX_SERVER_ROOT: /var/www/html/web
      NGINX_STATIC_OPEN_FILE_CACHE: "off"
      NGINX_VHOST_PRESET: php
      NGINX_INDEX_FILE: admin_dev.php
      NGINX_FASTCGI_INDEX: admin_dev.php
      NGINX_SERVER_EXTRA_CONF_FILEPATH: /var/www/html/.docker/nginx/nginx-locations.conf
    env_file:
      - .env
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.${DOCKER_PROJECT_NAME}_nginx_backend.rule=Host(`${DOCKER_PROJECT_URL}`)"
      - "traefik.http.routers.${DOCKER_PROJECT_NAME}_nginx_backend.entrypoints=websecure"
      - "traefik.http.routers.${DOCKER_PROJECT_NAME}_nginx_backend.tls.certresolver=myresolver"
    volumes:
      - "./:/var/www/html"

  nginx_frontend:
    image: wodby/nginx:1.19
    container_name: "${DOCKER_PROJECT_NAME}_nginx_frontend"
    depends_on:
      - php
    environment:
      NGINX_BACKEND_HOST: php
      NGINX_ERROR_LOG_LEVEL: debug
      NGINX_SERVER_ROOT: /var/www/html/web
      NGINX_STATIC_OPEN_FILE_CACHE: "off"
      NGINX_VHOST_PRESET: php
      NGINX_INDEX_FILE: site_dev.php
      NGINX_FASTCGI_INDEX: site_dev.php
      NGINX_SERVER_EXTRA_CONF_FILEPATH: /var/www/html/.docker/nginx/nginx-locations.conf
    env_file:
      - .env
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.${DOCKER_PROJECT_NAME}_nginx_frontend.rule=Host(`${DOCKER_PROJECT_URL_FRONTEND}`)"
      - "traefik.http.routers.${DOCKER_PROJECT_NAME}_nginx_frontend.entrypoints=websecure"
      - "traefik.http.routers.${DOCKER_PROJECT_NAME}_nginx_frontend.tls.certresolver=myresolver"
    volumes:
      - "./:/var/www/html"

  nginx_backend8:
    image: wodby/nginx:1.19
    container_name: "${DOCKER_PROJECT_NAME}_nginx_backend8"
    depends_on:
      - php8
    environment:
      NGINX_BACKEND_HOST: php8
      NGINX_ERROR_LOG_LEVEL: debug
      NGINX_SERVER_ROOT: /var/www/html/web
      NGINX_STATIC_OPEN_FILE_CACHE: "off"
      NGINX_VHOST_PRESET: php
      NGINX_INDEX_FILE: admin_dev.php
      NGINX_FASTCGI_INDEX: admin_dev.php
      NGINX_SERVER_EXTRA_CONF_FILEPATH: /var/www/html/.docker/nginx/nginx-locations.conf
    env_file:
      - .env
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.${DOCKER_PROJECT_NAME}_nginx_backend8.rule=Host(`${DOCKER_PROJECT_URL8}`)"
      - "traefik.http.routers.${DOCKER_PROJECT_NAME}_nginx_backend8.entrypoints=websecure"
      - "traefik.http.routers.${DOCKER_PROJECT_NAME}_nginx_backend8.tls.certresolver=myresolver"
    volumes:
      - "./:/var/www/html"

  nginx_frontend8:
    image: wodby/nginx:1.19
    container_name: "${DOCKER_PROJECT_NAME}_nginx_frontend8"
    depends_on:
      - php8
    environment:
      NGINX_BACKEND_HOST: php8
      NGINX_ERROR_LOG_LEVEL: debug
      NGINX_SERVER_ROOT: /var/www/html/web
      NGINX_STATIC_OPEN_FILE_CACHE: "off"
      NGINX_VHOST_PRESET: php
      NGINX_INDEX_FILE: site_dev.php
      NGINX_FASTCGI_INDEX: site_dev.php
      NGINX_SERVER_EXTRA_CONF_FILEPATH: /var/www/html/.docker/nginx/nginx-locations.conf
    env_file:
      - .env
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.${DOCKER_PROJECT_NAME}_nginx_frontend8.rule=Host(`${DOCKER_PROJECT_URL_FRONTEND8}`)"
      - "traefik.http.routers.${DOCKER_PROJECT_NAME}_nginx_frontend8.entrypoints=websecure"
      - "traefik.http.routers.${DOCKER_PROJECT_NAME}_nginx_frontend8.tls.certresolver=myresolver"
    volumes:
      - "./:/var/www/html"

  composer:
    image: wodby/php:7.4-dev-4.17.0
    container_name: "${DOCKER_PROJECT_NAME}_composer"
    environment:
      COLUMNS: 80
      PHP_FPM_GROUP: wodby
      PHP_FPM_USER: wodby
      PHP_SENDMAIL_PATH: "/usr/sbin/sendmail -t -i -S mailhog:1025"
    env_file:
      - .env
    volumes:
      - "./:/var/www/html"

  composer8:
    image: wodby/php:8.1-dev-4.27.0
    container_name: "${DOCKER_PROJECT_NAME}_composer8"
    environment:
      COLUMNS: 80
      PHP_FPM_GROUP: wodby
      PHP_FPM_USER: wodby
      PHP_SENDMAIL_PATH: "/usr/sbin/sendmail -t -i -S mailhog:1025"
    env_file:
      - .env
    volumes:
      - "./:/var/www/html"

  php:
    image: wodby/php:7.4-dev-4.17.0
    container_name: "${DOCKER_PROJECT_NAME}_php"
    environment:
      COLUMNS: 80
      PHP_FPM_GROUP: wodby
      PHP_FPM_USER: wodby
      PHP_SENDMAIL_PATH: "/usr/sbin/sendmail -t -i -S mailhog:1025"
      DB_HOST: $DATABASE_HOST
      DB_USER: $DATABASE_USER
      DB_PASSWORD: $DATABASE_PASS
      DB_NAME: $DATABASE_NAME
      DB_DRIVER: $DATABASE_DRIVER
      PHP_DEFAULT_CHARSET: 'utf-8'
      PHP_DATE_TIMEZONE: 'UTC'
      PHP_UPLOAD_MAX_FILESIZE: '10M'
      PHP_POST_MAX_SIZE: '10M'
      PHP_DISPLAY_ERRORS: 'On'
      PHP_DISPLAY_STARTUP_ERRORS: 'On'
      PHP_MAX_EXECUTION_TIME: '30000'
      PHP_MAX_INPUT_TIME: '60'
      PHP_MAX_INPUT_VARS: '2000'
      PHP_ERROR_REPORTING: 'E_ALL'
      PHP_LOG_ERRORS: 'On'
      PHP_LOG_ERRORS_MAX_LEN: '0'
      PHP_MEMORY_LIMIT: '512M'
      PHP_SESSION_GC_MAXLIFETIME: '700000'
      PHP_REALPATH_CACHE_SIZE: '4096K'
      PHP_REALPATH_CACHE_TTL: '3600'
      PHP_XHPROF: $PROFILING_ENABLED
      PHP_SESSION_SAVE_PATH: '/tmp'
      PHP_XDEBUG: 1
      PHP_XDEBUG_MODE: debug
      PHP_XDEBUG_DEFAULT_ENABLE: 1
      PHP_XDEBUG_REMOTE_CONNECT_BACK: 0
      #PHP_XDEBUG_REMOTE_HOST: 'host.docker.internal'
      #PHP_XDEBUG_REMOTE_HOST: 127.19.0.1
      PHP_XDEBUG_REMOTE_LOG: '/tmp/php-xdebug.log'
    env_file:
      - .env
    volumes:
      - "./:/var/www/html"
      - "./log/php:/var/log"
      - "./log/tmp:/tmp"
      - "./.docker/php/conf.d/docker-php-extra.ini:/usr/local/etc/php/conf.d/docker-php-extra.ini"
      ## For php profiler traces
      - "files:/mnt/files"

  php8:
    image: wodby/php:8.1-dev-4.27.0
    container_name: "${DOCKER_PROJECT_NAME}_php8"
    environment:
      COLUMNS: 80
      PHP_FPM_GROUP: wodby
      PHP_FPM_USER: wodby
      PHP_SENDMAIL_PATH: "/usr/sbin/sendmail -t -i -S mailhog:1025"
      DB_HOST: $DATABASE_HOST
      DB_USER: $DATABASE_USER
      DB_PASSWORD: $DATABASE_PASS
      DB_NAME: $DATABASE_NAME
      DB_DRIVER: $DATABASE_DRIVER
      PHP_DEFAULT_CHARSET: 'utf-8'
      PHP_DATE_TIMEZONE: 'UTC'
      PHP_UPLOAD_MAX_FILESIZE: '10M'
      PHP_POST_MAX_SIZE: '10M'
      PHP_DISPLAY_ERRORS: 'On'
      PHP_DISPLAY_STARTUP_ERRORS: 'On'
      PHP_MAX_EXECUTION_TIME: '30000'
      PHP_MAX_INPUT_TIME: '60'
      PHP_MAX_INPUT_VARS: '2000'
      PHP_ERROR_REPORTING: 'E_ALL'
      PHP_LOG_ERRORS: 'On'
      PHP_LOG_ERRORS_MAX_LEN: '0'
      PHP_MEMORY_LIMIT: '512M'
      PHP_SESSION_GC_MAXLIFETIME: '700000'
      PHP_REALPATH_CACHE_SIZE: '4096K'
      PHP_REALPATH_CACHE_TTL: '3600'
      PHP_XHPROF: $PROFILING_ENABLED
      PHP_SESSION_SAVE_PATH: '/tmp'
      PHP_XDEBUG: 1
      PHP_XDEBUG_MODE: debug
      PHP_XDEBUG_DEFAULT_ENABLE: 1
      PHP_XDEBUG_REMOTE_CONNECT_BACK: 0
      #PHP_XDEBUG_REMOTE_HOST: 'host.docker.internal'
      #PHP_XDEBUG_REMOTE_HOST: 127.19.0.1
      PHP_XDEBUG_REMOTE_LOG: '/tmp/php-xdebug.log'
    env_file:
      - .env
    volumes:
      - "./:/var/www/html"
      - "./log/php:/var/log"
      - "./log/tmp:/tmp"
      - "./.docker/php/conf.d/docker-php-extra.ini:/usr/local/etc/php/conf.d/docker-php-extra.ini"
      ## For php profiler traces
      - "files:/mnt/files"

  xhprof:
     image: wodby/xhprof:2.7.1
     container_name: "${DOCKER_PROJECT_NAME}_xhprof"
     restart: always
     volumes:
      - files:/mnt/files
     labels:
       - "traefik.enable=true"
       - "traefik.http.routers.${DOCKER_PROJECT_NAME}_xhprof.rule=Host(`xhprof.${DOCKER_PROJECT_URL}`)"
       - "traefik.http.routers.${DOCKER_PROJECT_NAME}_xhprof.entrypoints=websecure"
       - "traefik.http.routers.${DOCKER_PROJECT_NAME}_xhprof.tls.certresolver=myresolver"

  crond:
    image: wodby/php:7.4-dev-4.17.0
    container_name: "${DOCKER_PROJECT_NAME}_crond"
    command: "sudo -E LD_PRELOAD=/usr/lib/preloadable_libiconv.so crond -f -d 0"
    volumes:
      - "./:/var/www/html"
      - "./.docker/crond/crontab:/etc/crontabs/www-data"

  redis:
    image: wodby/redis:4-3.2.2
    container_name: "${DOCKER_PROJECT_NAME}_redis"

  portainer:
    image: portainer/portainer
    container_name: "${DOCKER_PROJECT_NAME}_portainer"
    command: "--no-auth -H unix:///var/run/docker.sock"
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.${DOCKER_PROJECT_NAME}_portainer.rule=Host(`portainer.${DOCKER_PROJECT_URL}`)"
      - "traefik.http.routers.${DOCKER_PROJECT_NAME}_portainer.entrypoints=websecure"
      - "traefik.http.routers.${DOCKER_PROJECT_NAME}_portainer.tls.certresolver=myresolver"
    volumes:
      - "/var/run/docker.sock:/var/run/docker.sock"

  traefik:
    image: traefik:v2.0
    container_name: "${DOCKER_PROJECT_NAME}_traefik"
    command:
      - "--log.level=DEBUG"
      - "--api.insecure=true"
      - "--providers.docker=true"
      - "--providers.docker.exposedbydefault=false"
      # Traefik will listen to incoming request on the port 443 (https) and 80 (http)
      - "--entrypoints.web.address=:80"
      - "--entrypoints.websecure.address=:443"
      # Enable a http challenge named myresolver"
      - "--certificatesresolvers.myresolver.acme.httpchallenge=true"
      # Tell it to use our predefined entrypoint named "web"
      - "--certificatesresolvers.myresolver.acme.httpchallenge.entrypoint=web"
      # Tell to store the certificate on a path under our volume
      - "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
      # The email to provide to let's encrypt
      - "[email protected]"
    ports:
      - "80:80"
      - "443:443"
      - "8080:8080"
    volumes:
      - "./.docker/traefik/letsencrypt:/letsencrypt"
      - "/var/run/docker.sock:/var/run/docker.sock:ro"

volumes:
  ## For database
  mssql-volume:
  ## For php profiler
  files:

Logs output

traefik log when I hit the page with my breakpoint

kinderopvang_traefik          | time="2021-12-30T12:43:47Z" level=debug msg="vulcand/oxy/roundrobin/rr: completed ServeHttp on request" Request="{\"Method\":\"GET\",\"URL\":{\"Scheme\":\"\",\"Opaque\":\"\",\"User\":null,\"Host\":\"\",\"Path\":\"/favicon.ico\",\"RawPath\":\"\",\"ForceQuery\":false,\"RawQuery\":\"\",\"Fragment\":\"\"},\"Proto\":\"HTTP/2.0\",\"ProtoMajor\":2,\"ProtoMinor\":0,\"Header\":{\"Accept\":[\"image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8\"],\"Accept-Encoding\":[\"br, gzip, deflate\"],\"Accept-Language\":[\"en-GB,en-US;q=0.9,en;q=0.8,nl;q=0.7\"],\"Cookie\":[\"_ga=GA1.2.924308641.1632485152; cookieconsent_status=dismiss; kdv_admin=svd8sibso2lt8f31mjk6l8oggc; _gid=GA1.2.523924256.1640682079; kdv_oostende_site=s6g2rpfubii5vu9q1q7livl5im; XDEBUG_SESSION=XDEBUG_ECLIPSE; _gat=1\"],\"Referer\":[\"https://kinderopvang.test/admin_dev.php/aanvraag/list\"],\"Sec-Ch-Ua\":[\"\\\" Not A;Brand\\\";v=\\\"99\\\", \\\"Chromium\\\";v=\\\"96\\\", \\\"Google Chrome\\\";v=\\\"96\\\"\"],\"Sec-Ch-Ua-Mobile\":[\"?0\"],\"Sec-Ch-Ua-Platform\":[\"\\\"Windows\\\"\"],\"Sec-Fetch-Dest\":[\"image\"],\"Sec-Fetch-Mode\":[\"no-cors\"],\"Sec-Fetch-Site\":[\"same-origin\"],\"User-Agent\":[\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36\"],\"X-Forwarded-Host\":[\"kinderopvang.test\"],\"X-Forwarded-Port\":[\"443\"],\"X-Forwarded-Proto\":[\"https\"],\"X-Forwarded-Server\":[\"e8ccce2554de\"],\"X-Real-Ip\":[\"172.31.0.1\"]},\"ContentLength\":0,\"TransferEncoding\":null,\"Host\":\"kinderopvang.test\",\"Form\":null,\"PostForm\":null,\"MultipartForm\":null,\"Trailer\":null,\"RemoteAddr\":\"172.31.0.1:60284\",\"RequestURI\":\"/favicon.ico\",\"TLS\":null}"

xdebug log with default remote host or remote host pointing to '127.19.0.1', which is basically the same since default value is localhost?

89] Log opened at 2021-12-30 12:34:14
[89] I: Connecting to configured address/port: localhost:9000.
[89] I: Connected to client. :-)
[89] -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///var/www/html/web/admin_dev.php" language="PHP" xdebug:language_version="7.4.11" protocol_version="1.0" appid="89" idekey="wodby"><engine version="2.9.6"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2020 by Derick Rethans]]></copyright></init>

[89] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" status="stopping" reason="ok"></response>

[89] Log closed at 2021-12-30 12:34:27

[87] Log opened at 2021-12-30 12:51:16
[87] I: Connecting to configured address/port: 127.19.0.1:9000.
[87] I: Connected to client. :-)
[87] -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///var/www/html/web/admin_dev.php" language="PHP" xdebug:language_version="7.4.11" protocol_version="1.0" appid="87" idekey="wodby"><engine version="2.9.6"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2020 by Derick Rethans]]></copyright></init>

[87] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" status="stopping" reason="ok"></response>

[87] Log closed at 2021-12-30 12:51:30

XDebug log when using host.docker.internal (suggestion I found somewhere online)

[87] Log opened at 2021-12-30 12:43:47
[87] I: Connecting to configured address/port: host.docker.internal:9000.
[87] E: Time-out connecting to client (Waited: 200 ms). :-(
[87] Log closed at 2021-12-30 12:43:48

Before adding remote_connect_back=0 I always had following output in log

Creating socket for '127.19.0.1:9000', poll success, but error: Operation in progress (29).

I have read a lot of other issues, SO threads but no answer seems really definitive. I've been trying to set this up for too long now which is sad because the docs make it seem like a simple plug and play setup. I really hope someone can help to clear up this issue.

Invalid compose file

When I try manage volumes mariadb manually. I get this error

ERROR: The Compose file './docker-compose.yml' is invalid because:
services.mariadb.environment.volumes contains ["./mysql:/var/lib/mysql"], which is an invalid type, it should be a string, number, or a null

I also use docker4wordpress and I never see this error. Also I try use quotation marks in this stroke ./mysql:/var/lib/mysql but did not give any effect

Host OS

OS: Manjaro Linux x86_64
Kernel: 5.9.16-1-MANJARO

Docker info output

Client:
 Context:    default
 Debug Mode: false
 Plugins:
  app: Docker App (Docker Inc., v0.9.1-beta3)
  buildx: Build with BuildKit (Docker Inc., v0.5.1-tp-docker)

Server:
 Containers: 7
  Running: 0
  Paused: 0
  Stopped: 7
 Images: 20
 Server Version: 20.10.3
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: 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: 269548fa27e0089a8b8278fc4fc781d7f65a939b.m
 runc version: 12644e614e25b05da6fd08a38ffa0cfe1903fdec
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: default
 Kernel Version: 5.9.16-1-MANJARO
 Operating System: Manjaro Linux
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 7.721GiB
 Name: vitalik-pc
 ID: NTA6:ZLZN:JQ5A:Z46R:RHUJ:LRVO:KJB4:6LTQ:7VRK:DRMR:OX23:3URB
 Docker Root Dir: /home/vitalik/.docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No blkio weight support
WARNING: No blkio weight_device support

Docker compose file

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.
      - ./mysql:/var/lib/mysql # I want to manage volumes manually.

404 page not found

Hello, I have this simple setup (shown below), but I ran into the following issue:
When I visit http://php.def:8000 from my host, server returns only "404 page not found".

But if I run bash on the apache service container and visit (wget) http://localhost from there, the output of my /var/www/html/index.php file is returned as expected.

Bash @ apache container

$ cat /usr/local/apache2/conf/conf.d/vhost.conf
<VirtualHost *:80>
    DocumentRoot "/var/www/html"
    ServerName default

    Include conf/preset.conf

    <Location />
        Require all granted
    </Location>
    SetEnvIf Request_URI "^/\.healthz$" dontlog
    RedirectMatch 204 .healthz
</VirtualHost>

$ ls /var/www/html/
docker-compose.yml    docker-sync.yml     docker.mk      index.php        traefik.yml

$ wget -qO- http://localhost
OK, this is text from my index.php file

Host OS

Windows 10

Docker info output

Containers: 6
 Running: 5
 Paused: 0
 Stopped: 1
Images: 6
Server Version: 18.09.2
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9754871865f7fe2f4e74d43e2fc7ccd237edcbce
runc version: 09c8266bf2fcf9519a651b04ae54c967b9ab86ec
init version: fec3683
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.9.125-linuxkit
Operating System: Docker for Windows
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.442GiB
Name: linuxkit-00155d011405
ID: GR3D:55ND:2TFB:DV2C:QEHF:NV66:JBWP:4ARE:HUKA:KDV6:YKZY:NERC
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 66
 Goroutines: 87
 System Time: 2019-06-23T11:05:29.693657Z
 EventsListeners: 2
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine

Docker compose file

version: "3"

services:
  php:
    image: wodby/php:$PHP_TAG
    container_name: "${PROJECT_NAME}_php"
    environment:
      PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mailhog:1025
#      DB_HOST: $DB_HOST
#      DB_USER: $DB_USER
#      DB_PASSWORD: $DB_PASSWORD
#      DB_NAME: $DB_NAME
      PHP_FPM_USER: wodby
      PHP_FPM_GROUP: wodby
    volumes:
      - ./:/var/www/html

  apache:
    image: wodby/apache:$APACHE_TAG
    container_name: "${PROJECT_NAME}_apache"
    depends_on:
      - php
    environment:
      APACHE_LOG_LEVEL: debug
      APACHE_BACKEND_HOST: php
      APACHE_VHOST_PRESET: php
      APACHE_DOCUMENT_ROOT: /var/www/html
    volumes:
      - ./:/var/www/html
# For macOS users (https://wodby.com/stacks/php/docs/local/docker-for-mac/)
#      - ./:/var/www/html:cached # User-guided caching
#      - docker-sync:/var/www/html # Docker-sync
    labels:
      - 'traefik.backend=${PROJECT_NAME}_apache'
      - 'traefik.port=80'
      - 'traefik.frontend.rule=Host:${PROJECT_BASE_URL}'

  mailhog:
    image: mailhog/mailhog
    container_name: "${PROJECT_NAME}_mailhog"
    labels:
      - 'traefik.backend=${PROJECT_NAME}_mailhog'
      - 'traefik.port=8025'
      - 'traefik.frontend.rule=Host:mailhog.${PROJECT_BASE_URL}'

  portainer:
    image: portainer/portainer
    container_name: "${PROJECT_NAME}_portainer"
    command: --no-auth -H unix:///var/run/docker.sock
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    labels:
      - 'traefik.backend=${PROJECT_NAME}_portainer'
      - 'traefik.port=9000'
      - 'traefik.frontend.rule=Host:portainer.${PROJECT_BASE_URL}'

  traefik:
    image: traefik
    container_name: "${PROJECT_NAME}_traefik"
    command: -c /dev/null --web --docker --logLevel=INFO
    ports:
      - '8000:80'
#      - '8080:8080' # Dashboard
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock

Logs output

Attaching to my_php7_project_apache, my_php7_project_php, my_php7_project_portainer, my_php7_project_traefik, my_php7_project_mailhog
my_php7_project_apache | [Sun Jun 23 10:32:46.665338 2019] [ssl:info] [pid 1:tid 140150965349224] AH01887: Init: Initializing (virtual) servers for SSL
my_php7_project_apache | [Sun Jun 23 10:32:46.665383 2019] [ssl:info] [pid 1:tid 140150965349224] AH01876: mod_ssl/2.4.39 compiled against Server: Apache/2.4.39, Library: OpenSSL/1.1.1b
my_php7_project_apache | [Sun Jun 23 10:32:46.665414 2019] [http2:debug] [pid 1:tid 140150965349224] mod_http2.c(112): AH03089: initializing post config dry run
my_php7_project_apache | [Sun Jun 23 10:32:46.670329 2019] [ssl:warn] [pid 1:tid 140150965349224] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
my_php7_project_apache | [Sun Jun 23 10:32:46.670357 2019] [ssl:info] [pid 1:tid 140150965349224] AH01887: Init: Initializing (virtual) servers for SSL
my_php7_project_apache | [Sun Jun 23 10:32:46.670368 2019] [ssl:info] [pid 1:tid 140150965349224] AH01876: mod_ssl/2.4.39 compiled against Server: Apache/2.4.39, Library: OpenSSL/1.1.1b
my_php7_project_apache | [Sun Jun 23 10:32:46.670397 2019] [http2:info] [pid 1:tid 140150965349224] AH03090: mod_http2 (v1.14.1, feats=CHPRIO+SHA256+INVHD+DWINS, nghttp2 1.35.1), initializing...
my_php7_project_apache | [Sun Jun 23 10:32:46.670695 2019] [ldap:debug] [pid 1:tid 140150965349224] util_ldap.c(2988): AH01316: LDAP merging Shared Cache conf: shm=0x5574470161b0 rmm=0x557447016208 for VHOST: default
my_php7_project_apache | [Sun Jun 23 10:32:46.670911 2019] [ldap:info] [pid 1:tid 140150965349224] AH01318: APR LDAP: Built with OpenLDAP LDAP SDK
my_php7_project_apache | [Sun Jun 23 10:32:46.670943 2019] [ldap:info] [pid 1:tid 140150965349224] AH01319: LDAP: SSL support available
my_php7_project_apache | [Sun Jun 23 10:32:46.673186 2019] [proxy_http2:info] [pid 1:tid 140150965349224] AH03349: mod_proxy_http2 (v1.14.1, nghttp2 1.35.1), initializing...
my_php7_project_apache | [Sun Jun 23 10:32:46.675150 2019] [mpm_event:notice] [pid 1:tid 140150965349224] AH00489: Apache/2.4.39 (Unix) OpenSSL/1.1.1b configured -- resuming normal operations
my_php7_project_apache | [Sun Jun 23 10:32:46.675180 2019] [mpm_event:info] [pid 1:tid 140150965349224] AH00490: Server built: May 11 2019 02:36:43
my_php7_project_apache | [Sun Jun 23 10:32:46.675197 2019] [core:notice] [pid 1:tid 140150965349224] AH00094: Command line: 'httpd -D FOREGROUND'
my_php7_project_apache | [Sun Jun 23 10:32:46.675204 2019] [core:debug] [pid 1:tid 140150965349224] log.c(1571): AH02639: Using SO_REUSEPORT: yes (1)
my_php7_project_apache | [Sun Jun 23 10:32:46.676349 2019] [proxy:debug] [pid 22:tid 140150965349224] proxy_util.c(1934): AH00925: initializing worker proxy:reverse shared
my_php7_project_apache | [Sun Jun 23 10:32:46.676442 2019] [proxy:debug] [pid 22:tid 140150965349224] proxy_util.c(1991): AH00927: initializing worker proxy:reverse local
my_php7_project_apache | [Sun Jun 23 10:32:46.676588 2019] [proxy:debug] [pid 22:tid 140150965349224] proxy_util.c(2026): AH00930: initialized pool in child 22 for (*) min=0 max=61 smax=61
my_php7_project_apache | [Sun Jun 23 10:32:46.676721 2019] [proxy:debug] [pid 22:tid 140150965349224] proxy_util.c(1934): AH00925: initializing worker fcgi://php:9000/ shared
my_php7_project_apache | [Sun Jun 23 10:32:46.676838 2019] [proxy:debug] [pid 22:tid 140150965349224] proxy_util.c(1991): AH00927: initializing worker fcgi://php:9000/ local
my_php7_project_apache | [Sun Jun 23 10:32:46.676948 2019] [proxy:debug] [pid 22:tid 140150965349224] proxy_util.c(2026): AH00930: initialized pool in child 22 for (php) min=0 max=61 smax=61
my_php7_project_apache | [Sun Jun 23 10:32:46.677424 2019] [mpm_event:debug] [pid 22:tid 140150953499408] event.c(2314): AH02471: start_threads: Using epoll (wakeable)
my_php7_project_apache | [Sun Jun 23 10:32:46.677766 2019] [proxy:debug] [pid 27:tid 140150965349224] proxy_util.c(1934): AH00925: initializing worker proxy:reverse shared
my_php7_project_apache | [Sun Jun 23 10:32:46.677799 2019] [proxy:debug] [pid 27:tid 140150965349224] proxy_util.c(1991): AH00927: initializing worker proxy:reverse local
my_php7_project_apache | [Sun Jun 23 10:32:46.677828 2019] [proxy:debug] [pid 27:tid 140150965349224] proxy_util.c(2026): AH00930: initialized pool in child 27 for (*) min=0 max=61 smax=61
my_php7_project_apache | [Sun Jun 23 10:32:46.677947 2019] [proxy:debug] [pid 27:tid 140150965349224] proxy_util.c(1934): AH00925: initializing worker fcgi://php:9000/ shared
my_php7_project_apache | [Sun Jun 23 10:32:46.677985 2019] [proxy:debug] [pid 27:tid 140150965349224] proxy_util.c(1991): AH00927: initializing worker fcgi://php:9000/ local
my_php7_project_apache | [Sun Jun 23 10:32:46.678003 2019] [proxy:debug] [pid 27:tid 140150965349224] proxy_util.c(2026): AH00930: initialized pool in child 27 for (php) min=0 max=61 smax=61
my_php7_project_apache | [Sun Jun 23 10:32:46.678453 2019] [mpm_event:debug] [pid 27:tid 140150953499408] event.c(2314): AH02471: start_threads: Using epoll (wakeable)
my_php7_project_apache | [Sun Jun 23 10:32:46.680333 2019] [proxy:debug] [pid 23:tid 140150965349224] proxy_util.c(1934): AH00925: initializing worker proxy:reverse shared
my_php7_project_apache | [Sun Jun 23 10:32:46.680395 2019] [proxy:debug] [pid 23:tid 140150965349224] proxy_util.c(1991): AH00927: initializing worker proxy:reverse local
my_php7_project_apache | [Sun Jun 23 10:32:46.680475 2019] [proxy:debug] [pid 23:tid 140150965349224] proxy_util.c(2026): AH00930: initialized pool in child 23 for (*) min=0 max=61 smax=61
my_php7_project_apache | [Sun Jun 23 10:32:46.680533 2019] [proxy:debug] [pid 23:tid 140150965349224] proxy_util.c(1934): AH00925: initializing worker fcgi://php:9000/ shared
my_php7_project_apache | [Sun Jun 23 10:32:46.680598 2019] [proxy:debug] [pid 23:tid 140150965349224] proxy_util.c(1991): AH00927: initializing worker fcgi://php:9000/ local
my_php7_project_apache | [Sun Jun 23 10:32:46.680637 2019] [proxy:debug] [pid 23:tid 140150965349224] proxy_util.c(2026): AH00930: initialized pool in child 23 for (php) min=0 max=61 smax=61
my_php7_project_apache | [Sun Jun 23 10:32:46.680786 2019] [mpm_event:debug] [pid 23:tid 140150953499408] event.c(2314): AH02471: start_threads: Using epoll (wakeable)
my_php7_project_apache | [Sun Jun 23 10:57:55.916740 2019] [authz_core:debug] [pid 23:tid 140150953310992] mod_authz_core.c(820): [client 127.0.0.1:53808] AH01626: authorization result of Require all granted: granted
my_php7_project_apache | [Sun Jun 23 10:57:55.916778 2019] [authz_core:debug] [pid 23:tid 140150953310992] mod_authz_core.c(820): [client 127.0.0.1:53808] AH01626: authorization result of <RequireAny>: granted
my_php7_project_apache | [Sun Jun 23 10:57:55.918007 2019] [authz_core:debug] [pid 23:tid 140150953310992] mod_authz_core.c(820): [client 127.0.0.1:53808] AH01626: authorization result of Require all granted: granted
my_php7_project_apache | [Sun Jun 23 10:57:55.918051 2019] [authz_core:debug] [pid 23:tid 140150953310992] mod_authz_core.c(820): [client 127.0.0.1:53808] AH01626: authorization result of <RequireAny>: granted
my_php7_project_apache | [Sun Jun 23 10:57:55.918119 2019] [proxy:debug] [pid 23:tid 140150953310992] mod_proxy.c(1248): [client 127.0.0.1:53808] AH01143: Running scheme fcgi handler (attempt 0)
my_php7_project_apache | [Sun Jun 23 10:57:55.918142 2019] [proxy_fcgi:debug] [pid 23:tid 140150953310992] mod_proxy_fcgi.c(1021): [client 127.0.0.1:53808] AH01076: url: fcgi://php:9000/var/www/html/index.php proxyname: (null) proxyport: 0
my_php7_project_apache | [Sun Jun 23 10:57:55.918149 2019] [proxy_fcgi:debug] [pid 23:tid 140150953310992] mod_proxy_fcgi.c(1028): [client 127.0.0.1:53808] AH01078: serving URL fcgi://php:9000/var/www/html/index.php
my_php7_project_apache | [Sun Jun 23 10:57:55.918170 2019] [proxy:debug] [pid 23:tid 140150953310992] proxy_util.c(2326): AH00942: FCGI: has acquired connection for (php)
my_php7_project_apache | [Sun Jun 23 10:57:55.918186 2019] [proxy:debug] [pid 23:tid 140150953310992] proxy_util.c(2379): [client 127.0.0.1:53808] AH00944: connecting fcgi://php:9000/var/www/html/index.php to php:9000
my_php7_project_apache | [Sun Jun 23 10:57:55.918879 2019] [proxy:debug] [pid 23:tid 140150953310992] proxy_util.c(2588): [client 127.0.0.1:53808] AH00947: connected /var/www/html/index.php to php:9000
my_php7_project_apache | [Sun Jun 23 10:57:55.919164 2019] [proxy:debug] [pid 23:tid 140150953310992] proxy_util.c(3057): AH02824: FCGI: connection established with 172.25.0.4:9000 (php)
my_php7_project_apache | 127.0.0.1 - - [23/Jun/2019:10:57:55 +0000] "GET / HTTP/1.1" 200 2
my_php7_project_apache | [Sun Jun 23 10:57:56.005112 2019] [proxy:debug] [pid 23:tid 140150953310992] proxy_util.c(2341): AH00943: FCGI: has released connection for (php)
my_php7_project_traefik | time="2019-06-23T10:32:56Z" level=info msg="Using TOML configuration file /dev/null"
my_php7_project_traefik | time="2019-06-23T10:32:56Z" level=warning msg="web provider configuration is deprecated, you should use these options : api, rest provider, ping and metrics"
my_php7_project_traefik | time="2019-06-23T10:32:56Z" level=info msg="Traefik version v1.7.12 built on 2019-05-29_07:35:02PM"
my_php7_project_traefik | time="2019-06-23T10:32:56Z" level=info msg="\nStats collection is disabled.\nHelp us improve Traefik by turning this feature on :)\nMore details on: https://docs.traefik.io/basics/#collected-data\n"
my_php7_project_traefik | time="2019-06-23T10:32:56Z" level=info msg="Preparing server http &{Address::80 TLS:<nil> Redirect:<nil> Auth:<nil> WhitelistSourceRange:[] WhiteList:<nil> Compress:false ProxyProtocol:<nil> ForwardedHeaders:0xc00002be40} with readTimeout=0s writeTimeout=0s idleTimeout=3m0s"
my_php7_project_traefik | time="2019-06-23T10:32:56Z" level=info msg="Preparing server traefik &{Address::8080 TLS:<nil> Redirect:<nil> Auth:<nil> WhitelistSourceRange:[] WhiteList:<nil> Compress:false ProxyProtocol:<nil> ForwardedHeaders:0xc00002bea0} with readTimeout=0s writeTimeout=0s idleTimeout=3m0s"
my_php7_project_traefik | time="2019-06-23T10:32:56Z" level=info msg="Starting provider configuration.ProviderAggregator {}"
my_php7_project_traefik | time="2019-06-23T10:32:56Z" level=info msg="Starting server on :80"
my_php7_project_portainer | 2019/06/23 10:32:57 Starting Portainer 1.21.0 on :9000
my_php7_project_traefik | time="2019-06-23T10:32:56Z" level=info msg="Starting server on :8080"
my_php7_project_traefik | time="2019-06-23T10:32:56Z" level=info msg="Starting provider *docker.Provider {\"Watch\":true,\"Filename\":\"\",\"Constraints\":null,\"Trace\":false,\"TemplateVersion\":2,\"DebugLogGeneratedTemplate\":false,\"Endpoint\":\"unix:///var/run/docker.sock\",\"Domain\":\"\",\"TLS\":null,\"ExposedByDefault\":true,\"UseBindPortIP\":false,\"SwarmMode\":false,\"Network\":\"\",\"SwarmModeRefreshSeconds\":15}"
my_php7_project_traefik | time="2019-06-23T10:32:56Z" level=info msg="Server configuration reloaded on :80"
my_php7_project_traefik | time="2019-06-23T10:32:56Z" level=info msg="Server configuration reloaded on :8080"
my_php7_project_php | [23-Jun-2019 10:32:58] NOTICE: fpm is running, pid 1
my_php7_project_php | [23-Jun-2019 10:32:58] NOTICE: ready to handle connections
my_php7_project_php | 172.25.0.6 -  23/Jun/2019:10:57:55 +0000 "GET /index.php" 200
my_php7_project_mailhog | 2019/06/23 10:32:35 Using in-memory storage
my_php7_project_mailhog | 2019/06/23 10:32:36 [SMTP] Binding to address: 0.0.0.0:1025
my_php7_project_mailhog | [HTTP] Binding to address: 0.0.0.0:8025
my_php7_project_mailhog | 2019/06/23 10:32:36 Serving under http://0.0.0.0:8025/
my_php7_project_mailhog | Creating API v1 with WebPath:
my_php7_project_mailhog | Creating API v2 with WebPath:
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_php7_project_mailhog | [APIv1] KEEPALIVE /api/v1/events

.env

### PROJECT SETTINGS

PROJECT_NAME=my_php7_project
PROJECT_BASE_URL=php.def
...

Hosts etc/host

127.0.0.1	php7.def

docker-compose up -d

Creating network "php-7_default" with the default driver
Creating my_php7_project_mailhog   ... done
Creating my_php7_project_php       ... done
Creating my_php7_project_portainer ... done
Creating my_php7_project_traefik   ... done
Creating my_php7_project_apache    ... done

Latest 4.49.1 dev image cannot install php extentions

STEP 6/7: RUN docker-php-ext-install gettext /usr/local/bin/docker-php-ext-install: cd: line 19: can't cd to /usr/src/php/ext: No such file or directory Error: building at STEP "RUN docker-php-ext-install gettext": while running runtime: exit status 2

With 8.3-dev-4.48.0 everything builds just fine.

Could it be dev files are missing from the dev image?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.