Remove portainer
This commit is contained in:
parent
d87b91d5aa
commit
303283f73e
5 changed files with 0 additions and 57 deletions
|
@ -1,16 +0,0 @@
|
||||||
version: "2.3"
|
|
||||||
|
|
||||||
services:
|
|
||||||
portainer:
|
|
||||||
image: portainer/portainer:latest
|
|
||||||
container_name: portainer
|
|
||||||
restart: unless-stopped
|
|
||||||
volumes:
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
- ./data:/data
|
|
||||||
labels:
|
|
||||||
- "traefik.enable=true"
|
|
||||||
- "traefik.http.routers.portainer.rule=Host(`portainer.jakehoward.tech`)"
|
|
||||||
- "traefik.http.routers.portainer.tls=true"
|
|
||||||
- "traefik.http.routers.portainer.tls.certresolver=le"
|
|
||||||
- "traefik.http.routers.portainer.middlewares=internal-only@file"
|
|
|
@ -36,9 +36,6 @@
|
||||||
- name: Install pihole
|
- name: Install pihole
|
||||||
include: pihole.yml
|
include: pihole.yml
|
||||||
|
|
||||||
- name: Install portainer
|
|
||||||
include: portainer.yml
|
|
||||||
|
|
||||||
- name: Install quassel
|
- name: Install quassel
|
||||||
include: quassel.yml
|
include: quassel.yml
|
||||||
|
|
||||||
|
|
|
@ -1,29 +0,0 @@
|
||||||
- name: Create portainer directory
|
|
||||||
file:
|
|
||||||
path: /opt/portainer
|
|
||||||
state: directory
|
|
||||||
owner: "{{ docker_user.name }}"
|
|
||||||
mode: "{{ docker_compose_directory_mask }}"
|
|
||||||
become: true
|
|
||||||
|
|
||||||
- name: Install portainer compose file
|
|
||||||
template:
|
|
||||||
src: files/portainer/docker-compose.yml
|
|
||||||
dest: /opt/portainer/docker-compose.yml
|
|
||||||
mode: "{{ docker_compose_file_mask }}"
|
|
||||||
owner: "{{ docker_user.name }}"
|
|
||||||
validate: /usr/bin/docker-compose -f %s config
|
|
||||||
register: compose_file
|
|
||||||
become: true
|
|
||||||
|
|
||||||
- name: Cycle portainer container
|
|
||||||
docker_compose:
|
|
||||||
project_src: /opt/portainer
|
|
||||||
pull: true
|
|
||||||
remove_orphans: true
|
|
||||||
remove_volumes: true
|
|
||||||
state: "{{ item }}"
|
|
||||||
when: compose_file.changed
|
|
||||||
loop:
|
|
||||||
- absent
|
|
||||||
- present
|
|
|
@ -1,7 +1,6 @@
|
||||||
internal_hostnames:
|
internal_hostnames:
|
||||||
- duplicati.jakehoward.tech
|
- duplicati.jakehoward.tech
|
||||||
- traefik.jakehoward.tech
|
- traefik.jakehoward.tech
|
||||||
- portainer.jakehoward.tech
|
|
||||||
- netdata.jakehoward.tech
|
- netdata.jakehoward.tech
|
||||||
- deluge.jakehoward.tech
|
- deluge.jakehoward.tech
|
||||||
- speed.jakehoward.tech
|
- speed.jakehoward.tech
|
||||||
|
|
|
@ -92,14 +92,6 @@ resource "cloudflare_record" "jakehowardtech_quassel" {
|
||||||
ttl = 1
|
ttl = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "cloudflare_record" "jakehowardtech_portainer" {
|
|
||||||
zone_id = cloudflare_zone.jakehowardtech.id
|
|
||||||
name = "portainer"
|
|
||||||
value = vultr_server.casey.main_ip
|
|
||||||
type = "A"
|
|
||||||
ttl = 1
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "cloudflare_record" "jakehowardtech_pihole" {
|
resource "cloudflare_record" "jakehowardtech_pihole" {
|
||||||
zone_id = cloudflare_zone.jakehowardtech.id
|
zone_id = cloudflare_zone.jakehowardtech.id
|
||||||
name = "pihole"
|
name = "pihole"
|
||||||
|
|
Loading…
Reference in a new issue