From fe5391a5c2f45bd80c5a71294cd74e8cb85308f1 Mon Sep 17 00:00:00 2001 From: Sheppy Date: Wed, 4 Jan 2023 03:44:11 +0100 Subject: [PATCH] wip: docker deployments stub --- roles/docker-deployments/tasks/main.yaml | 25 +++++++++++++++++++ .../templates/athq-landing.yaml | 4 +++ .../docker-deployments/templates/grafana.yaml | 8 ++++++ .../templates/potaris-en.yaml | 4 +++ .../docker-deployments/templates/potaris.yaml | 4 +++ .../templates/sector32.yaml | 4 +++ 6 files changed, 49 insertions(+) create mode 100644 roles/docker-deployments/tasks/main.yaml create mode 100644 roles/docker-deployments/templates/athq-landing.yaml create mode 100644 roles/docker-deployments/templates/grafana.yaml create mode 100644 roles/docker-deployments/templates/potaris-en.yaml create mode 100644 roles/docker-deployments/templates/potaris.yaml create mode 100644 roles/docker-deployments/templates/sector32.yaml diff --git a/roles/docker-deployments/tasks/main.yaml b/roles/docker-deployments/tasks/main.yaml new file mode 100644 index 0000000..0cf2b68 --- /dev/null +++ b/roles/docker-deployments/tasks/main.yaml @@ -0,0 +1,25 @@ +- name: Create opt-dir + file: + name: /opt/ + state: directory + +- name: Copy compose templates + template: + src: {{ item }} + dest: /opt/ + with_items: + - athq-landing.yaml + - grafana.yaml + - potaris-en.yaml + - potaris.yaml + - sector32.yaml + +- name: Copy compose templates + compose: + TODO + with_items: + - athq-landing.yaml + - grafana.yaml + - potaris-en.yaml + - potaris.yaml + - sector32.yaml diff --git a/roles/docker-deployments/templates/athq-landing.yaml b/roles/docker-deployments/templates/athq-landing.yaml new file mode 100644 index 0000000..28e54a7 --- /dev/null +++ b/roles/docker-deployments/templates/athq-landing.yaml @@ -0,0 +1,4 @@ +athqlanding: + ports: + - 5002:5000 + image: registry.atlantishq.de/athq/landing-page diff --git a/roles/docker-deployments/templates/grafana.yaml b/roles/docker-deployments/templates/grafana.yaml new file mode 100644 index 0000000..30894b0 --- /dev/null +++ b/roles/docker-deployments/templates/grafana.yaml @@ -0,0 +1,8 @@ +grafana: + ports: + - 3000:3000 + image: grafana/grafana-oss + volumes: + - "/var/lib/grafana:/var/grafana" + environment: + GF_INSTALL_PLUGINS : "grafana-clock-panel,grafana-simple-json-datasource" diff --git a/roles/docker-deployments/templates/potaris-en.yaml b/roles/docker-deployments/templates/potaris-en.yaml new file mode 100644 index 0000000..6fdfc5c --- /dev/null +++ b/roles/docker-deployments/templates/potaris-en.yaml @@ -0,0 +1,4 @@ +potaris: + ports: + - 5003:5000 + image: registry.atlantishq.de/athq/potaris-en diff --git a/roles/docker-deployments/templates/potaris.yaml b/roles/docker-deployments/templates/potaris.yaml new file mode 100644 index 0000000..358fbc5 --- /dev/null +++ b/roles/docker-deployments/templates/potaris.yaml @@ -0,0 +1,4 @@ +potaris: + ports: + - 5003:5000 + image: registry.atlantishq.de/athq/potaris diff --git a/roles/docker-deployments/templates/sector32.yaml b/roles/docker-deployments/templates/sector32.yaml new file mode 100644 index 0000000..93bfcae --- /dev/null +++ b/roles/docker-deployments/templates/sector32.yaml @@ -0,0 +1,4 @@ +sector32: + ports: + - 5001:5000 + image: registry.atlantishq.de/athq/sector32