Loading deploy/docker-compose.time-series-commands.dev.yml +0 −11 Original line number Diff line number Diff line version: '3.5' services: time-series-commands: container_name: ${UNIT_NAME}-commands restart: on-failure:3 ports: - ${COMMANDS_PORT}:${COMMANDS_PORT} volumes: commands-vol: name: ${UNIT_NAME}-commands-vol deploy/docker-compose.time-series-commands.prod.yml +0 −27 Original line number Diff line number Diff line Loading @@ -2,34 +2,7 @@ version: '3.5' services: time-series-commands: ports: - ${COMMANDS_PORT} networks: - traefik-net deploy: mode: replicated replicas: 1 labels: traefik.port: "${COMMANDS_PORT}" traefik.docker.network: traefik-net traefik.frontend.rule: PathPrefix:/api/${UNIT_NAME}/commands traefik.backend: ${UNIT_NAME}-commands placement: constraints: - node.role == worker restart_policy: condition: on-failure max_attempts: 3 networks: traefik-net: external: true volumes: commands-vol: name: "${UNIT_NAME}-commands-{{.Task.Slot}}-vol" driver: "cloudstor:aws" driver_opts: backing: relocatable size: 1 ebstype: gp2 deploy/docker-compose.time-series-commands.tmpl.yml +35 −2 Original line number Diff line number Diff line Loading @@ -5,12 +5,17 @@ services: image: ${IMAGE_NAME}:${IMAGE_TAG:-latest} environment: - COMMANDS_PORT - SERVICE - SPRING_PROFILES_ACTIVE - JAVA_OPTS=-Xmx512m -Xss512m - OAUTH_CLIENT_ID - OAUTH_CLIENT_SECRET - MICROSERVICE_NAME=${UNIT_NAME}-commands - SPRING_KAFKA_CLIENT-ID={{.Service.Name}}-{{.Task.Slot}} - JAVA_OPTS=-Xmx1848m -Xms256m networks: - metric-net - kafka-net - redmic-net - traefik-net volumes: - commands-vol:/tmp/kafka healthcheck: Loading @@ -19,9 +24,37 @@ services: timeout: 10s retries: 3 start_period: 2m deploy: mode: replicated replicas: 1 labels: traefik.frontend.rule: Host:${PUBLIC_HOSTNAME};PathPrefix:/api/${UNIT_NAME}/commands traefik.backend: ${UNIT_NAME}-commands traefik.port: "${COMMANDS_PORT}" restart_policy: delay: 1m window: 3m resources: limits: cpus: '2' memory: 2G reservations: memory: 1639M networks: metric-net: name: ${METRIC_NET_NAME:-metric-net} external: true kafka-net: name: ${KAFKA_NET_NAME:-kafka-net} external: true redmic-net: name: ${REDMIC_NET_NAME:-redmic-net} external: true traefik-net: name: ${TRAEFIK_NET_NAME:-traefik-net} external: true deploy/docker-compose.time-series-view.dev.yml +0 −7 Original line number Diff line number Diff line version: '3.5' services: time-series-view: container_name: ${UNIT_NAME}-view restart: on-failure:3 ports: - ${VIEW_PORT}:${VIEW_PORT} deploy/docker-compose.time-series-view.prod.yml +0 −18 Original line number Diff line number Diff line Loading @@ -2,25 +2,7 @@ version: '3.5' services: time-series-view: ports: - ${VIEW_PORT} networks: - traefik-net deploy: mode: replicated replicas: 1 labels: traefik.port: "${VIEW_PORT}" traefik.docker.network: traefik-net traefik.frontend.rule: PathPrefix:/api/${UNIT_NAME}/view traefik.backend: ${UNIT_NAME}-view placement: constraints: - node.role == worker restart_policy: condition: on-failure max_attempts: 3 networks: traefik-net: external: true Loading
deploy/docker-compose.time-series-commands.dev.yml +0 −11 Original line number Diff line number Diff line version: '3.5' services: time-series-commands: container_name: ${UNIT_NAME}-commands restart: on-failure:3 ports: - ${COMMANDS_PORT}:${COMMANDS_PORT} volumes: commands-vol: name: ${UNIT_NAME}-commands-vol
deploy/docker-compose.time-series-commands.prod.yml +0 −27 Original line number Diff line number Diff line Loading @@ -2,34 +2,7 @@ version: '3.5' services: time-series-commands: ports: - ${COMMANDS_PORT} networks: - traefik-net deploy: mode: replicated replicas: 1 labels: traefik.port: "${COMMANDS_PORT}" traefik.docker.network: traefik-net traefik.frontend.rule: PathPrefix:/api/${UNIT_NAME}/commands traefik.backend: ${UNIT_NAME}-commands placement: constraints: - node.role == worker restart_policy: condition: on-failure max_attempts: 3 networks: traefik-net: external: true volumes: commands-vol: name: "${UNIT_NAME}-commands-{{.Task.Slot}}-vol" driver: "cloudstor:aws" driver_opts: backing: relocatable size: 1 ebstype: gp2
deploy/docker-compose.time-series-commands.tmpl.yml +35 −2 Original line number Diff line number Diff line Loading @@ -5,12 +5,17 @@ services: image: ${IMAGE_NAME}:${IMAGE_TAG:-latest} environment: - COMMANDS_PORT - SERVICE - SPRING_PROFILES_ACTIVE - JAVA_OPTS=-Xmx512m -Xss512m - OAUTH_CLIENT_ID - OAUTH_CLIENT_SECRET - MICROSERVICE_NAME=${UNIT_NAME}-commands - SPRING_KAFKA_CLIENT-ID={{.Service.Name}}-{{.Task.Slot}} - JAVA_OPTS=-Xmx1848m -Xms256m networks: - metric-net - kafka-net - redmic-net - traefik-net volumes: - commands-vol:/tmp/kafka healthcheck: Loading @@ -19,9 +24,37 @@ services: timeout: 10s retries: 3 start_period: 2m deploy: mode: replicated replicas: 1 labels: traefik.frontend.rule: Host:${PUBLIC_HOSTNAME};PathPrefix:/api/${UNIT_NAME}/commands traefik.backend: ${UNIT_NAME}-commands traefik.port: "${COMMANDS_PORT}" restart_policy: delay: 1m window: 3m resources: limits: cpus: '2' memory: 2G reservations: memory: 1639M networks: metric-net: name: ${METRIC_NET_NAME:-metric-net} external: true kafka-net: name: ${KAFKA_NET_NAME:-kafka-net} external: true redmic-net: name: ${REDMIC_NET_NAME:-redmic-net} external: true traefik-net: name: ${TRAEFIK_NET_NAME:-traefik-net} external: true
deploy/docker-compose.time-series-view.dev.yml +0 −7 Original line number Diff line number Diff line version: '3.5' services: time-series-view: container_name: ${UNIT_NAME}-view restart: on-failure:3 ports: - ${VIEW_PORT}:${VIEW_PORT}
deploy/docker-compose.time-series-view.prod.yml +0 −18 Original line number Diff line number Diff line Loading @@ -2,25 +2,7 @@ version: '3.5' services: time-series-view: ports: - ${VIEW_PORT} networks: - traefik-net deploy: mode: replicated replicas: 1 labels: traefik.port: "${VIEW_PORT}" traefik.docker.network: traefik-net traefik.frontend.rule: PathPrefix:/api/${UNIT_NAME}/view traefik.backend: ${UNIT_NAME}-view placement: constraints: - node.role == worker restart_policy: condition: on-failure max_attempts: 3 networks: traefik-net: external: true