39 lines
885 B
YAML
39 lines
885 B
YAML
---
|
|
version: "3.8"
|
|
|
|
services:
|
|
app:
|
|
image: "nginx:stable"
|
|
configs:
|
|
- source: abra_conf
|
|
target: /etc/nginx/conf.d/abra.conf
|
|
- source: abra_apps_json
|
|
target: /var/www/abra-apps/abra-apps.json
|
|
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.cloud.autonomic.zone`)"
|
|
- "traefik.http.routers.abra-apps.entrypoints=web-secure"
|
|
- "traefik.http.routers.abra-apps.tls.certresolver=production"
|
|
|
|
configs:
|
|
abra_apps_json:
|
|
file: abra-apps.json
|
|
abra_conf:
|
|
file: nginx.conf
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|
|
|
|
volumes:
|
|
public:
|