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