containers: - name: alerta image: "alerta/alerta-web:{{ alerta_web_version }}-custom" env: - name: "DATABASE_URL" value: "postgres://alerta:{{ alerta_postgres_password }}@127.0.0.1:5432/alerta" - name: "AUTH_REQUIRED" value: "True" - name: "ADMIN_USERS" value: "admin" - name: "SECRET_KEY" value: "{{ alerta_web_secret_key }}" - name: "SUPERVISORD_LOG_LEVEL" value: "warn" volumeMounts: - name: config mountPath: /app/alertad.conf.j2 subPath: alertad.conf.j2 readOnly: true - name: config mountPath: /app/alerta.conf.j2 subPath: alerta.conf.j2 readOnly: true {% if alerta_mailer is defined %} - name: config mountPath: /app/email.tmpl subPath: email.tmpl readOnly: true {% endif %} ports: - containerPort: 8080 hostPort: {{ alerta_web_port }} - name: postgresql image: "postgres:{{ alerta_postgres_version }}" args: - postgres - -c - listen_addresses=127.0.0.1 env: - name: "POSTGRES_DB" value: "alerta" - name: "POSTGRES_USER" value: "alerta" - name: "POSTGRES_PASSWORD" value: "{{ alerta_postgres_password }}" volumeMounts: - name: postgres mountPath: /var/lib/postgresql/data {% if 'amqp' in alerta_plugins %} - name: redis image: "redis:{{ alerta_redis_version }}" args: - redis-server - --bind - 127.0.0.1 {% endif %} volumes: - name: config hostPath: path: "{{ alerta_base_path }}/config" type: Directory - name: postgres hostPath: path: "{{ alerta_base_path }}/postgres" type: Directory