libretime_container_docker
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| libretime_container_docker [2025/12/18 21:55] – [Installer Libretime via Docker] Benjamin Labomedia | libretime_container_docker [2026/03/26 20:51] (Version actuelle) – [Installer Libretime via Docker] Benjamin Labomedia | ||
|---|---|---|---|
| Ligne 6: | Ligne 6: | ||
| Tests partiellement réalisés sur Debian 13 et Ubuntu 24.04 | Tests partiellement réalisés sur Debian 13 et Ubuntu 24.04 | ||
| - | Commencer | + | Commencer |
| Création d'une utilisatrice dédiée | Création d'une utilisatrice dédiée | ||
| Ligne 13: | Ligne 13: | ||
| sudo su - libretimedocker | sudo su - libretimedocker | ||
| - | Installer ensuite Libretime en tant qu' | + | Installer ensuite Libretime en tant qu' |
| + | |||
| + | Il faut donc adapter les fichiers config.yml et docker-compose.yml puis ... | ||
| Ne pas oublier d' | Ne pas oublier d' | ||
| docker compose run --rm api libretime-api migrate | docker compose run --rm api libretime-api migrate | ||
| - | | + | |
| + | Ensuite pour démarrer le container, toujours à partir du répertoire d' | ||
| + | docker compose up -d | ||
| + | check si ça marche : | ||
| + | docker compose ps | ||
| + | docker compose logs -f | ||
| + | éteindre et virer les processus orphelins (les pauvres) | ||
| + | docker-compose down --remove-orphans | ||
| + | |||
| + | ===== Ressources complémentaires - troubleshouting ===== | ||
| + | * La documentation Libretime https:// | ||
| + | * Le forum Libretime https:// | ||
| + | * Problème de lecture des flux https comme webstream dans libretime https:// | ||
| + | ===== Libretime Docker docker-compose.yml ===== | ||
| + | <file yml docker-compose.yml> | ||
| + | services: | ||
| + | postgres: | ||
| + | image: postgres: | ||
| + | # pour assurer un démarrage au boot, ajouter cette ligne pour chaque service : | ||
| + | restart: always | ||
| + | volumes: | ||
| + | - postgres_data:/ | ||
| + | environment: | ||
| + | POSTGRES_USER: | ||
| + | POSTGRES_PASSWORD: | ||
| + | healthcheck: | ||
| + | test: pg_isready -U libretime | ||
| + | |||
| + | rabbitmq: | ||
| + | image: rabbitmq: | ||
| + | restart: always | ||
| + | environment: | ||
| + | RABBITMQ_DEFAULT_VHOST: | ||
| + | RABBITMQ_DEFAULT_USER: | ||
| + | RABBITMQ_DEFAULT_PASS: | ||
| + | healthcheck: | ||
| + | test: nc -z 127.0.0.1 5672 | ||
| + | |||
| + | playout: | ||
| + | image: ghcr.io/ | ||
| + | restart: always | ||
| + | init: true | ||
| + | ulimits: | ||
| + | nofile: 1024 | ||
| + | depends_on: | ||
| + | - rabbitmq | ||
| + | volumes: | ||
| + | - ${LIBRETIME_CONFIG_FILEPATH: | ||
| + | - libretime_playout:/ | ||
| + | environment: | ||
| + | LIBRETIME_GENERAL_PUBLIC_URL: | ||
| + | |||
| + | liquidsoap: | ||
| + | image: ghcr.io/ | ||
| + | restart: always | ||
| + | command: / | ||
| + | init: true | ||
| + | ulimits: | ||
| + | nofile: 1024 | ||
| + | ports: | ||
| + | # à changer si plusieurs docker Libretime sur le même serveur | ||
| + | - 8001:8001 | ||
| + | - 8002:8002 | ||
| + | depends_on: | ||
| + | - rabbitmq | ||
| + | volumes: | ||
| + | - ${LIBRETIME_CONFIG_FILEPATH: | ||
| + | - libretime_playout:/ | ||
| + | environment: | ||
| + | LIBRETIME_GENERAL_PUBLIC_URL: | ||
| + | |||
| + | analyzer: | ||
| + | image: ghcr.io/ | ||
| + | restart: always | ||
| + | init: true | ||
| + | ulimits: | ||
| + | nofile: 1024 | ||
| + | depends_on: | ||
| + | - rabbitmq | ||
| + | volumes: | ||
| + | - ${LIBRETIME_CONFIG_FILEPATH: | ||
| + | - libretime_storage:/ | ||
| + | environment: | ||
| + | LIBRETIME_GENERAL_PUBLIC_URL: | ||
| + | |||
| + | worker: | ||
| + | image: ghcr.io/ | ||
| + | restart: always | ||
| + | init: true | ||
| + | ulimits: | ||
| + | nofile: 1024 | ||
| + | depends_on: | ||
| + | - rabbitmq | ||
| + | volumes: | ||
| + | - ${LIBRETIME_CONFIG_FILEPATH: | ||
| + | environment: | ||
| + | LIBRETIME_GENERAL_PUBLIC_URL: | ||
| + | |||
| + | api: | ||
| + | image: ghcr.io/ | ||
| + | restart: always | ||
| + | init: true | ||
| + | ulimits: | ||
| + | nofile: 1024 | ||
| + | depends_on: | ||
| + | - postgres | ||
| + | - rabbitmq | ||
| + | volumes: | ||
| + | - ${LIBRETIME_CONFIG_FILEPATH: | ||
| + | - libretime_storage:/ | ||
| + | |||
| + | legacy: | ||
| + | image: ghcr.io/ | ||
| + | restart: always | ||
| + | init: true | ||
| + | ulimits: | ||
| + | nofile: 1024 | ||
| + | depends_on: | ||
| + | - postgres | ||
| + | - rabbitmq | ||
| + | volumes: | ||
| + | - ${LIBRETIME_CONFIG_FILEPATH: | ||
| + | - libretime_storage:/ | ||
| + | |||
| + | nginx: | ||
| + | image: ghcr.io/ | ||
| + | restart: always | ||
| + | ports: | ||
| + | - 127.0.0.1: | ||
| + | #pour faire en sorte que le nginx intégré au docker n' | ||
| + | depends_on: | ||
| + | - legacy | ||
| + | volumes: | ||
| + | - libretime_storage:/ | ||
| + | |||
| + | #pour désactiver le icecast intégré au docker et utiliser un icecast externe, commenter les lignes ci-dessous | ||
| + | # icecast: | ||
| + | # image: ghcr.io/ | ||
| + | # ports: | ||
| + | # - 8000:8000 | ||
| + | # environment: | ||
| + | # ICECAST_SOURCE_PASSWORD: | ||
| + | # ICECAST_ADMIN_PASSWORD: | ||
| + | # ICECAST_RELAY_PASSWORD: | ||
| + | |||
| + | volumes: | ||
| + | postgres_data: | ||
| + | libretime_storage: | ||
| + | libretime_playout: | ||
| + | |||
| + | </ | ||
| ===== Libretime Docker config.yml ===== | ===== Libretime Docker config.yml ===== | ||
| <file yml config.yml> | <file yml config.yml> | ||
| Ligne 363: | Ligne 515: | ||
| </ | </ | ||
| + | |||
| + | ===== Proxy Apache vhosts ===== | ||
| + | <file php radio.org.conf> | ||
| + | |||
| + | ## Libretime - docker-container | ||
| + | < | ||
| + | |||
| + | | ||
| + | | ||
| + | |||
| + | | ||
| + | | ||
| + | |||
| + | ProxyPreserveHost | ||
| + | ProxyRequests | ||
| + | |||
| + | |||
| + | < | ||
| + | Order deny,allow | ||
| + | Allow from all | ||
| + | </ | ||
| + | |||
| + | RewriteEngine on | ||
| + | RewriteCond %{SERVER_NAME} =****.***********.org | ||
| + | RewriteRule ^ https:// | ||
| + | </ | ||
| + | |||
| + | <file php radio.org-le-ssl.conf > | ||
| + | < | ||
| + | < | ||
| + | |||
| + | ServerAdmin **@riseup.net | ||
| + | ServerName ****.***********.org | ||
| + | |||
| + | | ||
| + | | ||
| + | |||
| + | ProxyPreserveHost On | ||
| + | ProxyRequests Off | ||
| + | |||
| + | < | ||
| + | ProxyPass | ||
| + | ProxyPassReverse | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | Order deny,allow | ||
| + | Allow from all | ||
| + | </ | ||
| + | |||
| + | SSLEngine on | ||
| + | SSLProxyEngine On | ||
| + | SSLProxyVerify none | ||
| + | SSLProxyCheckPeerCN off | ||
| + | SSLProxyCheckPeerName off | ||
| + | SSLProxyCheckPeerExpire off | ||
| + | |||
| + | SSLCertificateFile / | ||
| + | SSLCertificateKeyFile / | ||
| + | Include / | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | |||
libretime_container_docker.1766094937.txt.gz · Dernière modification : de Benjamin Labomedia
