This commit is contained in:
parent
ecc9953a9f
commit
5a09933156
|
@ -1,27 +1,51 @@
|
|||
version: '3.3'
|
||||
version: "3"
|
||||
services:
|
||||
postfix:
|
||||
image: registry.mgrote.net/postfix:master
|
||||
container_name: mail-relay
|
||||
restart: always
|
||||
labels:
|
||||
com.centurylinklabs.watchtower.enable: true
|
||||
ports:
|
||||
- 1025:25
|
||||
environment:
|
||||
SMTP_SERVER: smtp.strato.de
|
||||
SMTP_USERNAME: info@mgrote.net
|
||||
SMTP_PASSWORD: {{ lookup('keepass', 'strato_smtp_password', 'password') }}
|
||||
SERVER_HOSTNAME: mgrote.net
|
||||
# DEBUG: "yes" # literal
|
||||
ALWAYS_ADD_MISSING_HEADERS: "no" # literal
|
||||
# LOG_SUBJECT: "yes" # literal
|
||||
INET_PROTOCOL: ipv4
|
||||
SMTP_GENERIC_MAP: "/.*/ info@mgrote.net"
|
||||
networks:
|
||||
- mail-relay
|
||||
loki:
|
||||
image: grafana/loki:2.9.0
|
||||
ports:
|
||||
- "3100:3100"
|
||||
command: -config.file=/etc/loki/local-config.yaml
|
||||
networks:
|
||||
- loki
|
||||
|
||||
promtail:
|
||||
image: grafana/promtail:2.9.0
|
||||
volumes:
|
||||
- /var/log:/var/log
|
||||
command: -config.file=/etc/promtail/config.yml
|
||||
networks:
|
||||
- loki
|
||||
|
||||
grafana:
|
||||
environment:
|
||||
- GF_PATHS_PROVISIONING=/etc/grafana/provisioning
|
||||
- GF_AUTH_ANONYMOUS_ENABLED=true
|
||||
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
|
||||
entrypoint:
|
||||
- sh
|
||||
- -euc
|
||||
- |
|
||||
mkdir -p /etc/grafana/provisioning/datasources
|
||||
cat <<EOF > /etc/grafana/provisioning/datasources/ds.yaml
|
||||
apiVersion: 1
|
||||
datasources:
|
||||
- name: Loki
|
||||
type: loki
|
||||
access: proxy
|
||||
orgId: 1
|
||||
url: http://loki:3100
|
||||
basicAuth: false
|
||||
isDefault: true
|
||||
version: 1
|
||||
editable: false
|
||||
EOF
|
||||
/run.sh
|
||||
image: grafana/grafana:latest
|
||||
ports:
|
||||
- "3000:3000"
|
||||
networks:
|
||||
- loki
|
||||
|
||||
|
||||
######## Networks ########
|
||||
networks:
|
||||
mail-relay:
|
||||
external: true
|
||||
loki:
|
||||
|
|
Loading…
Reference in New Issue