mirror of
https://github.com/OpenLiberty/liberty-bikes.git
synced 2025-01-30 10:40:13 +08:00
Specify URLs as environment variables
This commit is contained in:
parent
9b016fc47d
commit
17f16ab70b
@ -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"
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user