Comments (10)
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.
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.
I'm working on it !
from generator-jhipster-docker-compose.
@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.
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.
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.
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.
Oh ok, I will try this and add some info for the user after files generation ! thanks
from generator-jhipster-docker-compose.
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.
done in main generator-jhipster
from generator-jhipster-docker-compose.
Related Issues (7)
- generator can not distinguish between maven or gradle based applications HOT 11
- Warn the user if registry is found as one of the app and document it HOT 40
- generated ELK logstash container fails with error HOT 29
- Feature: update JWT secret keys to same in all apps HOT 6
- Error
- Create and use official jhipster/jhipster-console HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from generator-jhipster-docker-compose.