-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-api-score-qry.yml
35 lines (32 loc) · 1.04 KB
/
docker-compose-api-score-qry.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
version: "3.8"
# Project name
name: rps-app
services:
# The Score query microservice provides REST and gRPC APIs for the RPS game.
score-qry-service:
# image: hokushin/score-qry-service:${SCORE_QRY_SRV_VERSION}
build:
context: .
dockerfile: ./docker/score-qry-service/Dockerfile
hostname: ${SCORE_QRY_SRV_HOSTNAME}
restart: on-failure
environment:
- JVM_OPTS=-Xmx8g -Xms8g -XX:MaxPermSize=1024m
- SERVER_PORT=${SCORE_QRY_SERVER_PORT}
- GRPC_SERVER_PORT=${SCORE_QRY_GRPC_SERVER_PORT}
labels:
collect_logs_with_filebeat: true
decode_log_event_to_json: true
ports: # Important: In a production environment you should remove the external port that kept here for debugging purposes.
- ${SCORE_QRY_SERVER_PORT}:80 # external port / container port
- ${SCORE_QRY_GRPC_SERVER_PORT}:6565 # external port / container port
env_file:
- .env
networks:
- ${BACKEND_NETWORK}
deploy:
replicas: 1
# networks
networks:
rps_net:
name: ${BACKEND_NETWORK}