Commit ca407608 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Define configuración de despliegue

parent 6d2f0e67
Loading
Loading
Loading
Loading

.gitlab-ci.yml

0 → 100644
+12 −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: storage
    SERVICES_TO_CHECK: storage_${CI_PROJECT_NAME}

deploy/.env

0 → 100644
+1 −0
Original line number Diff line number Diff line
PUBLIC_HOSTNAME=change.me
+5 −0
Original line number Diff line number Diff line
version: '3.5'

volumes:
  data-vol:
    name: ${DATA_VOL_NAME:-minio-data-vol}
+37 −0
Original line number Diff line number Diff line
version: '3.5'

services:
  minio:
    image: ${IMAGE_NAME:-minio/minio}:${IMAGE_TAG:-latest}
    command: server /data
    environment:
      MINIO_ACCESS_KEY:
      MINIO_SECRET_KEY:
    networks:
      traefik-net:
    volumes:
      - data-vol:/data
    deploy:
      mode: replicated
      replicas: ${REPLICAS:-1}
      restart_policy:
        delay: ${RESTART_DELAY:-5s}
      update_config:
        delay: ${UPDATE_DELAY:-1m}
      labels:
        traefik.frontend.rule: Host:${TRAEFIK_SUBDOMAIN:-minio}.${PUBLIC_HOSTNAME}
        traefik.backend: minio
        traefik.port: '${PORT:-9000}'
      resources:
        limits:
          cpus: '${RESOURCES_LIMITS_CPUS:-0.5}'
          memory: ${RESOURCES_LIMITS_MEMORY:-256M}
        reservations:
          cpus: '${RESOURCES_RESERVATIONS_CPUS:-0.001}'
          memory: ${RESOURCES_RESERVATIONS_MEMORY:-64M}

networks:
  traefik-net:
    name: ${TRAEFIK_NET_NAME:-traefik-net}
    driver: ${TRAEFIK_NET_DRIVER:-overlay}
    external: true