Commit 21f861d0 authored by Nick Busey's avatar Nick Busey

#80 Fix for monica and telegraf config files

parent 68410912
Pipeline #44873805 passed with stages
in 43 seconds
......@@ -11,6 +11,11 @@
vars:
tor_domain: "{{ tor_http_domain_file.stdout if tor_http_domain is defined else '' }}"
- name: Copy monicahq .env file into place.
template:
src: monicahq.env.j2
dest: /var/homelabos/monicahq/monicahq.env
- name: Configure monicahq systemd service.
template: src=monicahq.service dest=/etc/systemd/system/monicahq.service
......
......@@ -18,25 +18,27 @@ services:
ports:
- 8176:80
volumes:
- /var/homelabos/monica/storage/app/public:/var/www/monica/storage/app/public
- /var/homelabos/monicahq/storage/app/public:/var/www/monica/storage/app/public
labels:
- "traefik.enable=true"
- "traefik.docker.network=homelabos_traefik"
- "traefik.http.frontend.rule=Host:monica.{{ domain }}"
- "traefik.http.frontend.rule=Host:monicahq.{{ domain }}"
- "traefik.http.frontend.headers.customFrameOptionsValue=ALLOW-FROM http://{{ domain }}"
- "traefik.http.frontend.headers.customFrameOptionsValue=ALLOW-FROM https://{{ domain }}"
- "traefik.http.protocol=http"
- "traefik.http.port=80"
- "traefik.tor.frontend.rule=Host:monica.{{ tor_domain }}"
- "traefik.tor.frontend.rule=Host:monicahq.{{ tor_domain }}"
- "traefik.tor.protocol=http"
- "traefik.tor.port=80"
env_file:
- /var/homelabos/docker/monica.env
- /var/homelabos/monicahq/monicahq.env
monicahq_db:
image: mariadb
networks:
- traefik_network
restart: unless-stopped
env_file:
- /var/homelabos/docker/monica.env
- /var/homelabos/monicahq/monicahq.env
volumes:
- /var/homelabos/monica/mysql:/var/lib/mysql
\ No newline at end of file
- /var/homelabos/monicahq/mysql:/var/lib/mysql
\ No newline at end of file
......@@ -11,6 +11,9 @@
vars:
tor_domain: "{{ tor_http_domain_file.stdout if tor_http_domain is defined else '' }}"
- name: Configure telegraf
template: src=telegraf.conf.j2 dest=/var/homelabos/tick/telegraf.conf
- name: Configure tick systemd service.
template: src=tick.service dest=/etc/systemd/system/tick.service
......
......@@ -14,7 +14,7 @@ services:
networks:
- traefik_network
volumes:
- /var/homelabos/telegraf/telegraf.conf:/etc/telegraf/telegraf.conf
- /var/homelabos/tick/telegraf.conf:/etc/telegraf/telegraf.conf
- /var/run/docker.sock:/var/run/docker.sock
- /sys:/rootfs/sys:ro
- /proc:/rootfs/proc:ro
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment