Optimized yourls variables and healthcheck

This commit is contained in:
2025-08-31 20:38:02 +02:00
parent aa2eb53776
commit bb0530c2ac
5 changed files with 19 additions and 18 deletions

View File

@@ -2,9 +2,9 @@
application:
{% set container_port = 80 %}
{% set container_healthcheck = 'http://127.0.0.1' ~ yourls_admin_location %}
image: "{{ yourls_image }}:{{ yourls_version }}"
container_name: "{{ yourls_container }}"
{% set container_healthcheck = YOURLS_ADMIN_LOCATION %}
image: "{{ YOURLS_IMAGE }}:{{ YOURLS_VERSION }}"
container_name: "{{ YOURLS_CONTAINER }}"
{% include 'roles/docker-container/templates/base.yml.j2' %}
ports:
- "127.0.0.1:{{ ports.localhost.http[application_id] }}:{{ container_port }}"