recipes/compose.yml

39 lines
954 B
YAML
Raw Normal View History

2021-10-11 01:34:03 +02:00
---
version: "3.8"
services:
app:
image: "nginx:stable"
configs:
- source: abra_conf
target: /etc/nginx/conf.d/default.conf
- source: abra_recipes_json
target: /var/www/recipes/recipes.json
volumes:
- "public:/var/www/recipes"
networks:
- proxy
deploy:
update_config:
failure_action: rollback
order: start-first
labels:
- "traefik.enable=true"
2022-06-23 14:13:13 +02:00
- "traefik.http.services.recipes-json.loadbalancer.server.port=80"
- "traefik.http.routers.recipes-json.rule=Host(`apps.coopcloud.tech`) || (Host(`recipes.coopcloud.tech`) && PathPrefix(`/recipes.json`))"
- "traefik.http.routers.recipes-json.entrypoints=web-secure"
- "traefik.http.routers.recipes-json.tls.certresolver=production"
2021-10-11 01:34:03 +02:00
configs:
2021-10-11 01:35:36 +02:00
abra_recipes_json:
2021-10-11 01:34:03 +02:00
file: recipes.json
abra_conf:
file: nginx.conf
networks:
proxy:
external: true
volumes:
public: