Code Monkey home page Code Monkey logo

Comments (10)

wmarques avatar wmarques commented on June 15, 2024

I'm actually busy on other tasks but why doing alot of if blocks instead of putting the prodDatabaseType variable in the external-links like- "<%= baseName.toLowerCase() %>-<%= prodDatabaseType%>:<%= prodDatabaseType %>" ?

from generator-jhipster-docker-compose.

pascalgrimaud avatar pascalgrimaud commented on June 15, 2024

In dev profile, there can be no database, because of H2
So as soon as someone start on this ticket, post a message here ;-)

from generator-jhipster-docker-compose.

wmarques avatar wmarques commented on June 15, 2024

I'm working on it !

from generator-jhipster-docker-compose.

wmarques avatar wmarques commented on June 15, 2024

@pascalgrimaud I'm facing a problem: when I try to run two mysql (for example a gateway and a microservice), they're both on 3306 by default, maybe we should ask the port of the database in the jhipster generator, as we do for the application port ?

from generator-jhipster-docker-compose.

pascalgrimaud avatar pascalgrimaud commented on June 15, 2024

Yes I indicated it on one of my last comment at jhipster/generator-jhipster#2988

IMO, the easiest way to resolve it:

  • don't map the port. You can start 2 containers with port 3306, but to access, you have to use <ip>:3306. IMO, mapping port is usefull for monolith
  • imagine you have to launch 100 containers with mysql... it will be painful to define a specific port for every container

from generator-jhipster-docker-compose.

wmarques avatar wmarques commented on June 15, 2024

I've done this in 9b9d2f7, it works fine with mySQL and mongodb but I've got some issue with Cassandra the database seems to not startup well

from generator-jhipster-docker-compose.

pascalgrimaud avatar pascalgrimaud commented on June 15, 2024

Cassandra must be started manually before the other services
it's because, when you start cassandra, there is no tablespace, no table -> you have to copy cql scripts and launch them inside the container

from generator-jhipster-docker-compose.

wmarques avatar wmarques commented on June 15, 2024

Oh ok, I will try this and add some info for the user after files generation ! thanks

from generator-jhipster-docker-compose.

pascalgrimaud avatar pascalgrimaud commented on June 15, 2024

Look as this : http://jhipster.github.io/using-cassandra/

As we don't use an equivalent to Liquibase, database upgrades must be done manually. They are located in the src/main/resources/config/cql directory

That's why docker-compose with Cassandra is a little bit complex -> http://jhipster.github.io/docker-compose/

from generator-jhipster-docker-compose.

pascalgrimaud avatar pascalgrimaud commented on June 15, 2024

done in main generator-jhipster

from generator-jhipster-docker-compose.

Related Issues (7)

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.