mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-11-03 19:58:14 +00:00 
			
		
		
		
	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:
		@@ -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' %}
 | 
			
		||||
 
 | 
			
		||||
@@ -14,3 +14,6 @@ YOURLS_CONTAINER:               "{{ applications | get_app_conf(application_id,
 | 
			
		||||
YOURLS_ADMIN_LOCATION:          "{{ applications | get_app_conf(application_id, 'server.locations.admin') }}"
 | 
			
		||||
YOURLS_LANDINGPAGE_STATUS_CODE: "{{ applications | get_app_conf(application_id, 'server.status_codes.landingpage') }}"
 | 
			
		||||
 | 
			
		||||
# Container
 | 
			
		||||
container_port:                 8080
 | 
			
		||||
container_healthcheck:          "{{ '' | safe_join(YOURLS_ADMIN_LOCATION) }}/"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user