servers/services/helloworld/stack.yml
2021-03-11 22:41:37 +01:00

14 lines
514 B
YAML

version: "{{ compose_version }}"
services:
rest:
image: thomaspoignant/hello-world-rest-json
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.{{ service }}.rule=Host(`kadet.local`) && PathPrefix(`/hello/`)
- traefik.http.services.{{ service }}.loadbalancer.server.port=8080
- traefik.http.routers.{{ service }}.middlewares={{ service }}-strip
- traefik.http.middlewares.{{ service }}-strip.stripprefix.prefixes=/hello/
networks: ['traefik']