yourls: move container_port/healthcheck to vars; listen on 8080

• Removed hardcoded container_port/container_healthcheck from docker-compose.yml.j2
• Added container_port=8080 and container_healthcheck to vars/main.yml
• Rationale: current image listens on 8080; centralizes settings in vars

Ref: https://chatgpt.com/share/68b4a69d-e4b0-800f-a4f8-6c8e4fc55ee4
This commit is contained in:
2025-08-31 21:48:24 +02:00
parent 3a17b2979e
commit 1dbd714a56
2 changed files with 3 additions and 2 deletions

View File

@@ -1,8 +1,6 @@
{% include 'roles/docker-compose/templates/base.yml.j2' %}
application:
{% set container_port = 80 %}
{% set container_healthcheck = YOURLS_ADMIN_LOCATION %}
image: "{{ YOURLS_IMAGE }}:{{ YOURLS_VERSION }}"
container_name: "{{ YOURLS_CONTAINER }}"
{% include 'roles/docker-container/templates/base.yml.j2' %}