Commit 033e8c63 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Define configuración inicial de despliegue

parent 2f426eb1
Loading
Loading
Loading
Loading

.gitlab-ci.yml

0 → 100644
+13 −0
Original line number Diff line number Diff line
include:
  - project: 'redmic-project/gitlab-ci-templates'
    ref: master
    file: '/deployment.yml'

stages:
  - deploy

.deploy:
  variables:
    STACK: confluent
  environment:
    url: https://${CI_PROJECT_NAME}.${PUBLIC_HOSTNAME}

deploy/.env

0 → 100644
+7 −0
Original line number Diff line number Diff line
SERVER_LISTENPORT=8080
KAFKA_BROKERS=kafka-1:9092,kafka-2:9092,kafka-3:9092
KAFKA_SCHEMAREGISTRY_ENABLED=true
KAFKA_SCHEMAREGISTRY_URLS=http://schema-registry:8081
CONNECT_ENABLED=true
CONNECT_CLUSTERS_NAME=connect
CONNECT_CLUSTERS_URL=http://kafka-connect:8083
+1 −0
Original line number Diff line number Diff line
version: '3.5'
+1 −0
Original line number Diff line number Diff line
version: '3.5'
+46 −0
Original line number Diff line number Diff line
version: '3.5'

services:
  kowl:
    image: ${IMAGE_NAME:-quay.io/cloudhut/kowl}:${IMAGE_TAG:-master}
    environment:
      SERVER_LISTENPORT:
      KAFKA_BROKERS:
      KAFKA_SCHEMAREGISTRY_ENABLED:
      KAFKA_SCHEMAREGISTRY_URLS:
      CONNECT_ENABLED:
      CONNECT_CLUSTERS_NAME:
      CONNECT_CLUSTERS_URL:
    networks:
      kafka-net:
      traefik-net:
    deploy:
      mode: replicated
      replicas: ${REPLICAS:-1}
      restart_policy:
        delay: ${RESTART_DELAY:-10s}
      update_config:
        delay: ${UPDATE_DELAY:-30s}
      labels:
        traefik.frontend.auth.basic.users: ${UI_AUTH}
        traefik.frontend.rule: Host:${TRAEFIK_SUBDOMAIN:-kowl}.${PUBLIC_HOSTNAME}
        traefik.backend: kowl
        traefik.port: '${SERVER_LISTENPORT}'
      resources:
        limits:
          cpus: '${RESOURCES_LIMITS_CPUS:-0.1}'
          memory: ${RESOURCES_LIMITS_MEMORY:-64M}
        reservations:
          cpus: '${RESOURCES_RESERVATIONS_CPUS:-0.001}'
          memory: ${RESOURCES_RESERVATIONS_MEMORY:-16M}

networks:
  kafka-net:
    name: ${KAFKA_NET_NAME:-kafka-net}
    driver: ${KAFKA_NET_DRIVER:-overlay}
    external: true

  traefik-net:
    name: ${TRAEFIK_NET_NAME:-traefik-net}
    driver: ${TRAEFIK_NET_DRIVER:-overlay}
    external: true
+1 −1

File changed.

Contains only whitespace changes.

Loading