Docker issue with Spring boot 3.2.2 and PostgreSQL on AWS
I have been running into issues figuring out how to dockerize my image and upload it to aws.
Here is my dockerfile:
This is my docker-compose:
when composing or building i get errors in postgres connection attempt failed.
<properties>
<java.version>17</java.version>
</properties>
xml
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
```
I ran to so much issues because i was on java 21 and mvn had errors, but at this point i cannot figure it out at all
Any help would be truly appreciated.
Errors i get when running the container are usually postgres connection issue and tomcat server not starting issues, i am sure i am making a mistake in connecting the app to postgres but idk what i am missing
5 Replies
⌛
This post has been reserved for your question.
Hey @Ed! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
in my application.properties i have the following:
in my docker-compose at the very end I have:
maybe you should have:
@Tomasm21 I figured something out but i still not capable of building on aws for some reason.
This is my compose:
I am building as follows
and pushing:
in aws i do :
but it still fails, however locally on intellije i can compose and everything works correctly
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.