Move installer script to more general deploy folder

This commit is contained in:
decentral1se 2021-04-01 22:33:19 +02:00
parent 73c1290c52
commit 29e0077edb
No known key found for this signature in database
GPG Key ID: 92DAD76BD9567B8A
5 changed files with 48 additions and 0 deletions

View File

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

View File

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