feat: add basic httpbin services

Used to test connectivity of proxies
This commit is contained in:
Bert-Jan Fikse 2025-11-07 11:50:53 +01:00
parent 8c29be5db7
commit a4aa64777e
Signed by: bert-jan
GPG key ID: C1E0AB516AC16D1A
18 changed files with 346 additions and 0 deletions

View file

@ -0,0 +1,22 @@
services:
httpbin:
image: {{ httpbin_image }}
container_name: {{ httpbin_service_name }}
restart: unless-stopped
networks:
- {{ httpbin_traefik_network }}
labels:
- traefik.enable=true
- traefik.docker.network={{ httpbin_traefik_network }}
- traefik.http.routers.{{ httpbin_service_name }}.rule=Host(`{{ httpbin_domain }}`)
{% if httpbin_use_ssl %}
- traefik.http.routers.{{ httpbin_service_name }}.entrypoints=websecure
- traefik.http.routers.{{ httpbin_service_name }}.tls=true
{% else %}
- traefik.http.routers.{{ httpbin_service_name }}.entrypoints=web
{% endif %}
- traefik.http.services.{{ httpbin_service_name }}.loadbalancer.server.port={{ httpbin_port }}
networks:
{{ httpbin_traefik_network }}:
external: true