From 29e0077edb59ac1868c5d9eae992b7e293518a47 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Thu, 1 Apr 2021 22:33:19 +0200 Subject: [PATCH] Move installer script to more general deploy folder --- deploy/abra-apps.autonomic.zone/compose.yml | 38 +++++++++++++++++++ deploy/abra-apps.autonomic.zone/nginx.conf | 10 +++++ .../install.abra.autonomic.zone}/compose.yml | 0 .../install.abra.autonomic.zone}/installer | 0 .../install.abra.autonomic.zone}/nginx.conf | 0 5 files changed, 48 insertions(+) create mode 100644 deploy/abra-apps.autonomic.zone/compose.yml create mode 100644 deploy/abra-apps.autonomic.zone/nginx.conf rename {installer => deploy/install.abra.autonomic.zone}/compose.yml (100%) rename {installer => deploy/install.abra.autonomic.zone}/installer (100%) rename {installer => deploy/install.abra.autonomic.zone}/nginx.conf (100%) diff --git a/deploy/abra-apps.autonomic.zone/compose.yml b/deploy/abra-apps.autonomic.zone/compose.yml new file mode 100644 index 0000000..6ac21fa --- /dev/null +++ b/deploy/abra-apps.autonomic.zone/compose.yml @@ -0,0 +1,38 @@ +--- +version: "3.8" + +services: + abra_installer: + image: "nginx:stable" + configs: + - source: abra_conf + target: /etc/nginx/conf.d/abra.conf + - source: abra_installer + target: /var/www/abra-apps/installer + volumes: + - "public:/var/www/abra-apps" + networks: + - proxy + deploy: + update_config: + failure_action: rollback + order: start-first + labels: + - "traefik.enable=true" + - "traefik.http.services.abra-apps.loadbalancer.server.port=80" + - "traefik.http.routers.abra-apps.rule=Host(`abra-apps.autonomic.zone`)" + - "traefik.http.routers.abra-apps.entrypoints=web-secure" + - "traefik.http.routers.abra-apps.tls.certresolver=production" + +configs: + abra_installer: + file: installer + abra_conf: + file: nginx.conf + +networks: + proxy: + external: true + +volumes: + public: diff --git a/deploy/abra-apps.autonomic.zone/nginx.conf b/deploy/abra-apps.autonomic.zone/nginx.conf new file mode 100644 index 0000000..1fae3c3 --- /dev/null +++ b/deploy/abra-apps.autonomic.zone/nginx.conf @@ -0,0 +1,10 @@ +server { + listen 80 default_server; + server_name abra-apps.autonomic.zone; + + location / { + root /var/www/abra-apps; + add_header Content-Type application/json; + index installer; + } +} diff --git a/installer/compose.yml b/deploy/install.abra.autonomic.zone/compose.yml similarity index 100% rename from installer/compose.yml rename to deploy/install.abra.autonomic.zone/compose.yml diff --git a/installer/installer b/deploy/install.abra.autonomic.zone/installer similarity index 100% rename from installer/installer rename to deploy/install.abra.autonomic.zone/installer diff --git a/installer/nginx.conf b/deploy/install.abra.autonomic.zone/nginx.conf similarity index 100% rename from installer/nginx.conf rename to deploy/install.abra.autonomic.zone/nginx.conf