Code Monkey home page Code Monkey logo

Comments (8)

fabpot avatar fabpot commented on August 12, 2024 3

@dunglas Sometimes like this? symfony-cli/symfony-cli#364

from flex.

fabpot avatar fabpot commented on August 12, 2024 2

Symfony CLI v5.6.2 has been released with the fix.

from flex.

dunglas avatar dunglas commented on August 12, 2024 1

Ok I think I got it, support for the new compose file convention probably needs to be added somewhere in Symfony CLI.

from flex.

nicolas-grekas avatar nicolas-grekas commented on August 12, 2024

What does docker --version return for you?

from flex.

sblondeau avatar sblondeau commented on August 12, 2024

Hello Nicolas,
It returns 24.0.6

and docker compose version return
v2.21.0

from flex.

dunglas avatar dunglas commented on August 12, 2024

Can you paste your compose.yaml file? Also, do you have any override file? If yes, does it follow the same convention?

from flex.

sblondeau avatar sblondeau commented on August 12, 2024

Hello Kevin,
My compose and compose.override have no modification, they are generated when I start my project

version: '3'

services:
###> doctrine/doctrine-bundle ###
  database:
    image: postgres:${POSTGRES_VERSION:-15}-alpine
    environment:
      POSTGRES_DB: ${POSTGRES_DB:-app}
      # You should definitely change the password in production
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-!ChangeMe!}
      POSTGRES_USER: ${POSTGRES_USER:-app}
    volumes:
      - database_data:/var/lib/postgresql/data:rw
      # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!
      # - ./docker/db/data:/var/lib/postgresql/data:rw
###< doctrine/doctrine-bundle ###

volumes:
###> doctrine/doctrine-bundle ###
  database_data:
###< doctrine/doctrine-bundle ###

and the override

version: '3'

services:
###> doctrine/doctrine-bundle ###
  database:
    ports:
      - "5432"
###< doctrine/doctrine-bundle ###

###> symfony/mailer ###
  mailer:
    image: schickling/mailcatcher
    ports: ["1025", "1080"]
###< symfony/mailer ###

As soon as I rename it in docker-compose.yaml, my postgre container works well :-)

from flex.

wryk avatar wryk commented on August 12, 2024

I encountered the same database issue with symfony-cli local dev server. The cause was pretty clear when running symfony var:export --debug.

ERROR: unable to find a docker-compose.yaml or docker-compose.yml for the current directory
ERROR: unable to find a compose directory for the current directory

Renaming the files fixed the issue.

from flex.

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.