Move installer script to more general deploy folder
This commit is contained in:
parent
73c1290c52
commit
29e0077edb
38
deploy/abra-apps.autonomic.zone/compose.yml
Normal file
38
deploy/abra-apps.autonomic.zone/compose.yml
Normal 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:
|
10
deploy/abra-apps.autonomic.zone/nginx.conf
Normal file
10
deploy/abra-apps.autonomic.zone/nginx.conf
Normal 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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user