44 lines
1.5 KiB
YAML
44 lines
1.5 KiB
YAML
---
|
|
hydrogen_container_name: hydrogen
|
|
hydrogen_container_image_server: ghcr.io
|
|
hydrogen_container_image_namespace: element-hq
|
|
hydrogen_container_image_name: hydrogen-web
|
|
hydrogen_container_image_tag: ~
|
|
hydrogen_container_image: >-2
|
|
{{
|
|
([
|
|
hydrogen_container_image_server,
|
|
hydrogen_container_image_namespace,
|
|
hydrogen_container_image_name,
|
|
] | join('/'))
|
|
+ ':' + (hydrogen_container_image_tag
|
|
| default('v' + hydrogen_version, true))
|
|
}}
|
|
|
|
hydrogen_container_working_directory: "/usr/share/nginx/html"
|
|
hydrogen_container_config_file: >-2
|
|
{{ hydrogen_container_working_directory }}/config.json
|
|
hydrogen_container_base_volumes:
|
|
- "{{ hydrogen_config_file }}:{{ hydrogen_container_config_file }}:ro"
|
|
hydrogen_container_full_volumes: >-2
|
|
{{ hydrogen_container_base_volumes | default([], true)
|
|
+ (hydrogen_container_volumes | default([], true))
|
|
|
|
hydrogen_container_image_source: pull
|
|
hydrogen_container_image_force_source: >-2
|
|
{{ hydrogen_container_image_tag | default(false, true) | bool }}
|
|
hydrogen_container_state: >-2
|
|
{{ (hydrogen_state == 'present') | ternary('started', 'absent') }}
|
|
hydrogen_container_env: ~
|
|
hydrogen_container_user: >-2
|
|
{{ hydrogen_run_user_id }}:{{ hydrogen_run_group_id }}
|
|
hydrogen_container_ports: ~
|
|
hydrogen_container_labels: ~
|
|
hydrogen_container_ulimits: ~
|
|
hydrogen_container_volumes: ~
|
|
hydrogen_container_networks: ~
|
|
hydrogen_container_purge_networks: ~
|
|
hydrogen_container_dns_servers: ~
|
|
hydrogen_container_etc_hosts: ~
|
|
hydrogen_container_restart_policy: unless-stopped
|