Git Product home page Git Product logo

Comments (8)

samdark avatar samdark commented on May 27, 2024 2

PHP has CLI by default bundled with the setup so it makes no sense to have it in a separate container, I think.

from yii2-docker.

samdark avatar samdark commented on May 27, 2024 1

Technically there's no difference on which container is used...

from yii2-docker.

schmunk42 avatar schmunk42 commented on May 27, 2024

We might consider it.

@samdark @cebe Any thoughts?

from yii2-docker.

cebe avatar cebe commented on May 27, 2024

sorry, I don't get what you are asking/proposing. Could you elaborate please?

from yii2-docker.

schmunk42 avatar schmunk42 commented on May 27, 2024

I agree with samdark, you only reduce the size by a few megabytes.

from yii2-docker.

axklim avatar axklim commented on May 27, 2024

Sorry for reopen, but I have several workers and for them use php-cli image best solution.

$ docker-compose ps
          Name                         Command               State                      Ports
-----------------------------------------------------------------------------------------------------------------
delivery_app_1              docker-php-entrypoint php-fpm    Up      9000/tcp
delivery_db_1               docker-entrypoint.sh mysql ...   Up      0.0.0.0:8058->3306/tcp
delivery_db_test_1          docker-entrypoint.sh mysql ...   Up      0.0.0.0:8059->3306/tcp
delivery_web_1              nginx -g daemon off;             Up      0.0.0.0:8057->80/tcp, 0.0.0.0:8060->8080/tcp
delivery_worker-default_1   docker-php-entrypoint php  ...   Up      9000/tcp
delivery_worker-default_2   docker-php-entrypoint php  ...   Up      9000/tcp
delivery_worker-default_3   docker-php-entrypoint php  ...   Up      9000/tcp
delivery_worker-urgent_1    docker-php-entrypoint php  ...   Up      9000/tcp
delivery_worker-urgent_2    docker-php-entrypoint php  ...   Up      9000/tcp
delivery_worker-urgent_3    docker-php-entrypoint php  ...   Up      9000/tcp
delivery_worker-urgent_4    docker-php-entrypoint php  ...   Up      9000/tcp
delivery_worker-urgent_5    docker-php-entrypoint php  ...   Up      9000/tcp

from yii2-docker.

samdark avatar samdark commented on May 27, 2024

Why?

from yii2-docker.

axklim avatar axklim commented on May 27, 2024

For me it's looks like better :) par example another service:
(messagesender_worker_N - use php-cli image based on yii2-docker)

$ docker-compose ps
         Name                        Command               State                      Ports
---------------------------------------------------------------------------------------------------------------
messagesender_app_1       docker-php-entrypoint apac ...   Up      0.0.0.0:8014->80/tcp, 0.0.0.0:8018->8080/tcp
messagesender_db_1        docker-entrypoint.sh mysqld      Up      0.0.0.0:8006->3306/tcp
messagesender_db_test_1   docker-entrypoint.sh mysqld      Up      0.0.0.0:8007->3306/tcp
messagesender_redis_1     docker-entrypoint.sh /bin/ ...   Up      6379/tcp
messagesender_swagger_1   sh /usr/share/nginx/docker ...   Up      0.0.0.0:8017->8080/tcp
messagesender_worker_1    docker-php-entrypoint php  ...   Up
messagesender_worker_2    docker-php-entrypoint php  ...   Up
messagesender_worker_3    docker-php-entrypoint php  ...   Up

from yii2-docker.

Related Issues (20)

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.