Docker project not working on Windows but works on Ubuntu fine

I was wondering do I have to change anything in my docker setup when trying to run the same on Windows machine?(running fine on Ubuntu 20.04)
php-fpm is giving me errors…

docker-compose file

version: '3'
    services:
        php_fpm:
            build: .docker/php-fpm
            depends_on:
                - mariadb
            volumes:
                - ./:/var/www/html/learnit
                - ./var/log:/var/log
            env_file:
                - .env
            entrypoint: [ "./bin/entrypoint.sh" ]
            command: [ "php-fpm" ]
        nginx:
            build: .docker/nginx
            depends_on:
                - php_fpm
                - mariadb
            volumes:
                - ./:/var/www/html/learnit
                - ./var/log:/var/log/nginx
        mariadb:
            image: mariadb:latest
            env_file:
            - .env
        volumes:
            - mariadb-learnit:/var/lib/mysql
    volumes:
        mariadb-learnit:

entrypoint.sh file

#!/bin/bash
set -e

php bin/console cache:warmup --env=$APP_ENV
php bin/console assets:install --env=$APP_ENV --symlink
chown -R www-data:www-data $(pwd)/var/cache && chown -R www-data:www-data $(pwd)/var/log

if [ -n $DB_HOST ] && [ -n $DB_PORT ]; then
  ./bin/wait-for-it.sh --host=$DB_HOST --port=$DB_PORT --timeout=30
  php bin/console doctrine:migrations:migrate --env=$APP_ENV --no-interaction

fi

exec "[email protected]"

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *