2021-10-10 23:34:03 +00: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 12:13:13 +00:00
|
|
|
- "traefik.http.services.recipes-json.loadbalancer.server.port=80"
|
2023-12-28 18:22:35 +00:00
|
|
|
- "traefik.http.routers.recipes-json.rule=(Host(`recipes.coopcloud.tech`) && PathPrefix(`/recipes.json`))"
|
2023-12-28 19:15:31 +00:00
|
|
|
- "traefik.http.routers.recipes-json.priority=99"
|
2022-06-23 12:13:13 +00:00
|
|
|
- "traefik.http.routers.recipes-json.entrypoints=web-secure"
|
|
|
|
- "traefik.http.routers.recipes-json.tls.certresolver=production"
|
2021-10-10 23:34:03 +00:00
|
|
|
|
|
|
|
configs:
|
2021-10-10 23:35:36 +00:00
|
|
|
abra_recipes_json:
|
2021-10-10 23:34:03 +00:00
|
|
|
file: recipes.json
|
|
|
|
abra_conf:
|
|
|
|
file: nginx.conf
|
|
|
|
|
|
|
|
networks:
|
|
|
|
proxy:
|
|
|
|
external: true
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
public:
|