compose.yaml 662 B

1234567891011121314151617181920212223242526
  1. ---
  2. name: "Whoami"
  3. description: "Simple HTTP service that returns information about the request"
  4. version: "0.0.1"
  5. date: "2023-10-01"
  6. author: "Christian Lempa"
  7. tags:
  8. - "traefik"
  9. - "whoami"
  10. - "http"
  11. - "testing"
  12. ---
  13. services:
  14. {{ service_name | default('whoami') }}:
  15. image: traefik/whoami
  16. container_name: {{ container_name | default('whoami') }}
  17. {% if swarm %}
  18. deploy:
  19. replicas: {{ swarm_replicas | default(1) }}
  20. restart_policy:
  21. condition: on-failure
  22. {% endif %}
  23. ports:
  24. - "{{ service_port['http'] | default(8080) }}:80"
  25. - "{{ service_port['https'] | default(8443) }}:443"
  26. restart: unless-stopped