Decommission dokku
I don't use it, still. I have a better plan for doing this in future anyway...
This commit is contained in:
@ -1,12 +0,0 @@
|
||||
# Block requests which don't have an explicit handler
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
|
||||
server_name _;
|
||||
access_log off;
|
||||
return 418;
|
||||
}
|
||||
|
||||
# Load configuration files for the default server block (this directory is used by dokku).
|
||||
include /etc/nginx/conf.d/*.conf;
|
@ -1,5 +0,0 @@
|
||||
- name: reload nginx
|
||||
service:
|
||||
name: nginx
|
||||
state: reloaded
|
||||
become: true
|
@ -1,63 +0,0 @@
|
||||
# HACK: Fake include some tasks from `ansible_dokku`, so its library plugins can be used below
|
||||
- name: Run role without running any tasks
|
||||
include_role:
|
||||
name: dokku_bot.ansible_dokku
|
||||
tasks_from: init.yml
|
||||
apply:
|
||||
when: false
|
||||
|
||||
- name: Install Dokku
|
||||
package:
|
||||
name: dokku
|
||||
become: true
|
||||
|
||||
- name: List dokku plugins
|
||||
command: dokku plugin:list
|
||||
changed_when: false
|
||||
register: installed_dokku_plugins
|
||||
|
||||
- name: Install Dokku plugins
|
||||
command: dokku plugin:install {{ item.url }} --name {{ item.name }}
|
||||
when: installed_dokku_plugins.stdout.find(item.name) == -1
|
||||
loop: "{{ dokku_plugins }}"
|
||||
loop_control:
|
||||
label: "{{ item.name }}"
|
||||
become: true
|
||||
|
||||
- name: Automatically update Dokku plugins
|
||||
cron:
|
||||
name: dokku plugin:update {{ item.name }}
|
||||
minute: 0
|
||||
hour: 12
|
||||
user: root
|
||||
job: /usr/bin/chronic /usr/bin/dokku plugin:update {{ item.name }}
|
||||
cron_file: dokku-plugin-update-{{ item.name }}
|
||||
loop: "{{ dokku_plugins }}"
|
||||
loop_control:
|
||||
label: "{{ item.name }}"
|
||||
become: true
|
||||
|
||||
- name: Set up global domain
|
||||
dokku_domains:
|
||||
global: true
|
||||
domains: d.theorangeone.net
|
||||
become: true
|
||||
|
||||
- name: Install nginx config
|
||||
template:
|
||||
src: files/nginx.conf
|
||||
dest: /etc/nginx/http.d/dokku.conf
|
||||
mode: "644"
|
||||
notify: reload nginx
|
||||
become: true
|
||||
|
||||
# https://dokku.com/docs/advanced-usage/backup-recovery/
|
||||
- name: Sync data to app-data
|
||||
cron:
|
||||
name: clean up docker containers
|
||||
hour: "*/6"
|
||||
minute: 0
|
||||
user: root
|
||||
job: rsync --archive --progress -h /var/lib/dokku/{config,data,services} /home/dokku --exclude '/home/dokku/**/cache/*' /mnt/tank/app-data/dokku/
|
||||
cron_file: dokku-data-sync
|
||||
become: true
|
@ -1,9 +0,0 @@
|
||||
dokku_plugins:
|
||||
- name: postgres
|
||||
url: https://github.com/dokku/dokku-postgres.git
|
||||
- name: redis
|
||||
url: https://github.com/dokku/dokku-redis.git
|
||||
- name: redirect
|
||||
url: https://github.com/dokku/dokku-redirect.git
|
||||
- name: http-auth
|
||||
url: https://github.com/dokku/dokku-http-auth.git
|
@ -1,7 +1,6 @@
|
||||
traefik_provider_jellyfin: false
|
||||
traefik_provider_homeassistant: false
|
||||
traefik_provider_grafana: false
|
||||
traefik_provider_dokku: false
|
||||
traefik_provider_uptime_kuma: false
|
||||
|
||||
with_fail2ban: false
|
||||
|
@ -1,10 +0,0 @@
|
||||
http:
|
||||
routers:
|
||||
router-dokku:
|
||||
rule: HostRegexp(`{subdomain:[a-z]+}.d.theorangeone.net`)
|
||||
service: service-dokku
|
||||
services:
|
||||
service-dokku:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: http://{{ pve_hosts.dokku.ip }}
|
@ -25,10 +25,6 @@ entryPoints:
|
||||
sans: "*.theorangeone.net"
|
||||
- main: jakehoward.tech
|
||||
sans: "*.jakehoward.tech"
|
||||
{% if traefik_provider_dokku %}
|
||||
- main: d.theorangeone.net
|
||||
sans: "*.d.theorangeone.net"
|
||||
{% endif %}
|
||||
proxyProtocol:
|
||||
trustedIPs:
|
||||
- "{{ pve_hosts.ingress.ip }}/32"
|
||||
|
@ -91,17 +91,7 @@
|
||||
when: traefik_provider_grafana
|
||||
become: true
|
||||
|
||||
- name: Install dokku provider
|
||||
template:
|
||||
src: files/file-provider-dokku.yml
|
||||
dest: /opt/traefik/traefik/conf/dokku.yml
|
||||
mode: "{{ docker_compose_file_mask }}"
|
||||
owner: "{{ docker_user.name }}"
|
||||
notify: restart traefik
|
||||
when: traefik_provider_dokku
|
||||
become: true
|
||||
|
||||
- name: Install dokku provider
|
||||
- name: Install uptime-kuma provider
|
||||
template:
|
||||
src: files/file-provider-uptime-kuma.yml
|
||||
dest: /opt/traefik/traefik/conf/uptime-kuma.yml
|
||||
|
Reference in New Issue
Block a user