mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-10-10 02:38:10 +02:00
- Set CPU, memory reservation/limit, and PID limit for coturn - Ensure docker_compose_file_creation_enabled and disable git repo pulling - Move certificate mounts to volumes and fix env var interpolation in command - Correct realm and user formatting See: https://chatgpt.com/share/66f65f18-799c-800a-95f4-b6b26511e9cb
42 lines
1.5 KiB
Django/Jinja
42 lines
1.5 KiB
Django/Jinja
{% include 'roles/docker-compose/templates/base.yml.j2' %}
|
|
|
|
coturn:
|
|
{% include 'roles/docker-container/templates/base.yml.j2' %}
|
|
image: {{ COTURN_IMAGE }}:{{ COTURN_VERSION }}
|
|
container_name: {{ COTURN_VOLUME }}
|
|
ports:
|
|
- "{{ COTURN_TURN_PORT }}:{{ COTURN_TURN_PORT }}/udp"
|
|
- "{{ COTURN_TURN_PORT }}:{{ COTURN_TURN_PORT }}/tcp"
|
|
- "{{ COTURN_STUN_PORT }}:{{ COTURN_STUN_PORT }}/tcp"
|
|
- "{{ COTURN_STUN_PORT }}:{{ COTURN_STUN_PORT }}/udp"
|
|
- "{{ COTURN_RELAY_PORT_RANGE }}/udp"
|
|
volumes:
|
|
- "{{ COTURN_TLS_CERT_PATH }}:{{ COTURN_TLS_CERT_PATH }}:ro"
|
|
- "{{ COTURN_TLS_KEY_PATH }}:{{ COTURN_TLS_KEY_PATH }}:ro"
|
|
command: >
|
|
--use-auth-secret
|
|
--static-auth-secret="${COTURN_STATIC_AUTH_SECRET}"
|
|
--lt-cred-mech
|
|
--user="${COTURN_USER_NAME}:${COTURN_USER_PASSWORD}"
|
|
--log-file=stdout
|
|
--external-ip={{ networks.internet.ip4 }}
|
|
{% if networks.internet.ip6|default('') %}
|
|
--external-ip={{ networks.internet.ip6 }}
|
|
{% endif %}
|
|
--realm="${COTURN_REALM}"
|
|
--fingerprint
|
|
--total-quota=100
|
|
--stale-nonce
|
|
--no-multicast-peers
|
|
--no-cli
|
|
--no-tcp-relay
|
|
--min-port={{ COTURN_RELAY_PORT_START }}
|
|
--max-port={{ COTURN_RELAY_PORT_END }}
|
|
--cert={{ COTURN_TLS_CERT_PATH }}
|
|
--pkey={{ COTURN_TLS_KEY_PATH }}
|
|
--cipher-list=DEFAULT
|
|
--dh2066
|
|
{% include 'roles/docker-container/templates/networks.yml.j2' %}
|
|
|
|
{% include 'roles/docker-compose/templates/networks.yml.j2' %}
|