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
image: lb-frontend
ports:
- "12000:12000"
- "12000:12000"
auth:
build: auth-service
image: lb-auth
ports:
- "8082:8082"
- "8082:8082"
environment:
- frontend_url=http://lb-frontend:12000/login
- auth_url=https://lb-auth:8082/auth-service
game:
build: game-service
image: lb-game
ports:
- "8080:8080"
- "8080:8080"
environment:
- org_libertybikes_restclient_PlayerService_mp_rest_url=http://lb-player:8081
player:
build: player-service
image: lb-player
ports:
- "8081:8081"
- "8081:8081"

View File

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