main
Alpha Chen 1 year ago
parent 223020f5cd
commit 858770829f
Signed by: alpha
SSH Key Fingerprint: SHA256:3fOT8fiYQG/aK9ntivV3Bqtg8AYQ7q4nV6ZgihOA20g

@ -29,6 +29,7 @@
# restart: true
name: caddy
image: caddy:2
restart: true
ports:
- "80:80"
- "443:443"

@ -23,10 +23,6 @@
volumes:
- /mnt/lotus-land-story/golink:/home/nonroot
restart_policy: unless-stopped
# networks:
# - name: lotus_land_story
# etc_hosts:
# host.docker.internal: host-gateway
handlers:
- name: Import restarts

@ -96,10 +96,9 @@
- name: Run Loki
community.docker.docker_container:
# recreate: true
# restart: true
name: loki
image: grafana/loki:2.8.0
restart: true
command: -config.file=/mnt/config/loki.yml
volumes:
- /mnt/lotus-land-story/loki/config:/mnt/config
@ -112,10 +111,9 @@
- name: Run Promtail
community.docker.docker_container:
# recreate: true
# restart: true
name: promtail
image: grafana/promtail:2.8.0
restart: true
command: -config.file=/mnt/config/promtail.yml
volumes:
- /var/log:/var/log

@ -1,8 +1,8 @@
global:
# Attach these labels to any time series or alerts when communicating with
# external systems (federation, remote storage, Alertmanager).
external_labels:
monitor: 'codelab-monitor'
# external_labels:
# monitor: 'codelab-monitor'
scrape_configs:
- job_name: prometheus

@ -19,15 +19,23 @@ variable "soa_email" {
nullable = false
}
data "linode_instances" "ramble-hard" {
data "linode_instances" "ramble_hard" {
filter {
name = "label"
values = ["ramble-hard"]
}
}
data "linode_instances" "lotus_land_story" {
filter {
name = "label"
values = ["lotus-land-story"]
}
}
locals {
ramble-hard = data.linode_instances.ramble-hard.instances.0
ramble_hard = data.linode_instances.ramble_hard.instances.0
lotus_land_story = data.linode_instances.lotus_land_story.instances.0
}
resource "linode_domain" "kejadlen-dev" {

Loading…
Cancel
Save