feat: add basic httpbin services
Used to test connectivity of proxies
This commit is contained in:
parent
314fce4757
commit
137075ee6f
9 changed files with 149 additions and 0 deletions
22
roles/httpbin/templates/docker-compose.yml.j2
Normal file
22
roles/httpbin/templates/docker-compose.yml.j2
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue