recipes/compose.yml

39 lines
893 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"
- "traefik.http.services.recipes.loadbalancer.server.port=80"
- "traefik.http.routers.recipes.rule=Host(`apps.coopcloud.tech`, `recipes.coopcloud.tech`)"
- "traefik.http.routers.recipes.entrypoints=web-secure"
- "traefik.http.routers.recipes.tls.certresolver=production"
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: