Remove portainer

This commit is contained in:
Jake Howard 2020-04-19 21:42:57 +01:00
parent d87b91d5aa
commit 303283f73e
Signed by: jake
GPG key ID: 57AFB45680EDD477
5 changed files with 0 additions and 57 deletions

View file

@ -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"

View file

@ -36,9 +36,6 @@
- name: Install pihole
include: pihole.yml
- name: Install portainer
include: portainer.yml
- name: Install quassel
include: quassel.yml

View file

@ -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

View file

@ -1,7 +1,6 @@
internal_hostnames:
- duplicati.jakehoward.tech
- traefik.jakehoward.tech
- portainer.jakehoward.tech
- netdata.jakehoward.tech
- deluge.jakehoward.tech
- speed.jakehoward.tech

View file

@ -92,14 +92,6 @@ resource "cloudflare_record" "jakehowardtech_quassel" {
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" {
zone_id = cloudflare_zone.jakehowardtech.id
name = "pihole"