Specify URLs as environment variables

This commit is contained in:
Liam Westby 2018-11-19 15:12:39 -06:00
parent 9b016fc47d
commit 17f16ab70b
2 changed files with 9 additions and 5 deletions

View File

@ -4,19 +4,24 @@ services:
build: frontend build: frontend
image: lb-frontend image: lb-frontend
ports: ports:
- "12000:12000" - "12000:12000"
auth: auth:
build: auth-service build: auth-service
image: lb-auth image: lb-auth
ports: ports:
- "8082:8082" - "8082:8082"
environment:
- frontend_url=http://lb-frontend:12000/login
- auth_url=https://lb-auth:8082/auth-service
game: game:
build: game-service build: game-service
image: lb-game image: lb-game
ports: ports:
- "8080:8080" - "8080:8080"
environment:
- org_libertybikes_restclient_PlayerService_mp_rest_url=http://lb-player:8081
player: player:
build: player-service build: player-service
image: lb-player image: lb-player
ports: ports:
- "8081:8081" - "8081:8081"

View File

@ -5,7 +5,6 @@ RUN printf 'httpPort=8080\n\
httpsPort=8443' > /config/bootstrap.properties httpsPort=8443' > /config/bootstrap.properties
#RUN printf -- "-Dorg.libertybikes.restclient.PlayerService/mp-rest/url=\ #RUN printf -- "-Dorg.libertybikes.restclient.PlayerService/mp-rest/url=\
#http://lb-player:8081/" > /config/jvm.options #http://lb-player:8081/" > /config/jvm.options
ENV org.libertybikes.restclient.PlayerService/mp-rest/url=http://lb-player:8081
EXPOSE 8080 8443 EXPOSE 8080 8443