From 4b9b8e4bc0b572895ac4da640d4ca6b4e246b6d9 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Thu, 14 Oct 2021 17:40:03 +0200 Subject: [PATCH] chore: first release --- compose.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/compose.yml b/compose.yml index c73efce..064be99 100644 --- a/compose.yml +++ b/compose.yml @@ -1,4 +1,6 @@ +--- version: "3.8" + x-configs: &default-configs - source: config_json target: /web/config.json @@ -8,6 +10,7 @@ x-configs: &default-configs target: /app/alerta.conf - source: email_tmpl target: /app/email.tmpl + x-secrets: &default-secrets - cli_api_key - mailer_api_key @@ -15,6 +18,7 @@ x-secrets: &default-secrets - rocket_chat_webhook_url - secret_key - smtp_password + x-environment: &default-env - ADMIN_USERS=${ADMIN_USERS} - DB_HOST=db:27017 @@ -34,6 +38,7 @@ x-environment: &default-env - SMTP_HOST=${SMTP_HOST} - SMTP_PORT=${SMTP_PORT} - SMTP_STARTTLS=${SMTP_STARTTLS} + services: app: image: "decentral1se/alerta:8.5.0" @@ -50,10 +55,11 @@ services: - "traefik.http.routers.alerta.entrypoints=web-secure" - "traefik.http.services.alerta.loadbalancer.server.port=8080" - "traefik.http.routers.alerta.tls.certresolver=${LETS_ENCRYPT_ENV}" - - coop-cloud.${STACK_NAME}.app.version=8.5.0-d1a9a145 + - "coop-cloud.${STACK_NAME}.version=1.0.0+8.5.0" networks: - proxy - internal + mail: image: "decentral1se/alerta:8.5.0" command: alerta-mailer @@ -62,34 +68,30 @@ services: secrets: *default-secrets networks: - internal - deploy: - labels: - - coop-cloud.${STACK_NAME}.mail.version=8.5.0-d1a9a145 + db: image: "mongo:3-xenial" volumes: - "mongodb:/data/db" networks: - internal - deploy: - labels: - - coop-cloud.${STACK_NAME}.db.version=3-xenial-2ae2185d + queue: image: "redis:6" volumes: - "redis:/data" networks: - internal - deploy: - labels: - - coop-cloud.${STACK_NAME}.queue.version=6-e10f55f9 + networks: internal: proxy: external: true + volumes: mongodb: redis: + configs: config_json: name: ${STACK_NAME}_config_json_${CONFIG_JSON_VERSION} @@ -105,6 +107,7 @@ configs: email_tmpl: name: ${STACK_NAME}_email_tmpl_${EMAIL_TMPL_VERSION} file: email.tmpl + secrets: cli_api_key: name: ${STACK_NAME}_cli_api_key_${SECRET_CLI_API_KEY_VERSION}