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 # restart: true
name: caddy name: caddy
image: caddy:2 image: caddy:2
restart: true
ports: ports:
- "80:80" - "80:80"
- "443:443" - "443:443"

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

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

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

@ -19,15 +19,23 @@ variable "soa_email" {
nullable = false nullable = false
} }
data "linode_instances" "ramble-hard" { data "linode_instances" "ramble_hard" {
filter { filter {
name = "label" name = "label"
values = ["ramble-hard"] values = ["ramble-hard"]
} }
} }
data "linode_instances" "lotus_land_story" {
filter {
name = "label"
values = ["lotus-land-story"]
}
}
locals { 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" { resource "linode_domain" "kejadlen-dev" {

Loading…
Cancel
Save