Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
ADDED: prod profile
Browse files Browse the repository at this point in the history
  • Loading branch information
AleixMT committed Jan 17, 2024
1 parent 91deab2 commit 05b000a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,8 @@ RUN chown 1001:1001 /app/book-a-book-eureka.jar
# Cambia el usuario que va a ejecutar los siguientes comandos al usuario con id 1001
USER 1001

# Set the application profile in order to change the config of DB location
ENV spring_profiles_active=prod

ENTRYPOINT ["java", \
"-jar", "book-a-book-eureka.jar"]
1 change: 1 addition & 0 deletions src/main/resources/application-prod.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
eureka.instance.hostname=${EUREKA_HOST:localhost}
11 changes: 11 additions & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
#####################################
### APPLICATION PROFILE SELECTION ###
#####################################

# Profile that is active.
# The value can be "prod" or "dev", but you can create your own profiles.
spring.profiles.active = dev

# Fallback profile (set if no profile is active)
spring.profiles.default = prod


server.port=8761

Expand Down

0 comments on commit 05b000a

Please sign in to comment.