jean-cloud-services/services/mux.radiodemo.oma-radio.fr/docker-compose.yml

114 lines
2.7 KiB
YAML
Raw Normal View History

2023-09-29 07:51:22 +00:00
version: '3'
services:
ambre_mux:
2023-10-16 08:47:35 +00:00
image: registry.gitlab.com/omaradio/core/oma-mux:$OMA_DOCKER_VERSION
2024-02-22 00:43:01 +00:00
env_file:
- .env
- $DATA_DIR/.env
2023-09-29 07:51:22 +00:00
environment:
OMA_CONFIG_Client1Host: $NET.108
OMA_CONFIG_TelecommandeHost: $NET$TELECOM
volumes:
- $SOUNDBASE_DIR/pige:/app/pige
ports:
- $MUX_SERVER_PORT:9000
2024-02-22 00:43:01 +00:00
depends_on:
- transcode
2023-09-29 07:51:22 +00:00
restart: unless-stopped
networks:
default:
ipv4_address: $NET$MUX
deploy:
resources:
limits:
cpus: '0.50'
memory: 100M
saphir_telecom_server:
2023-10-02 21:45:09 +00:00
image: registry.gitlab.com/omaradio/core/oma-telecom-server:$OMA_DOCKER_VERSION
2023-09-29 07:51:22 +00:00
env_file: .env
ports:
- $TELECOM_SERVER_PORT:3490
restart: unless-stopped
networks:
default:
ipv4_address: $NET$TELECOM
deploy:
resources:
limits:
cpus: '0.50'
memory: 100M
amarante_webserver:
2023-10-02 21:45:09 +00:00
image: registry.gitlab.com/omaradio/core/oma-webserver:$OMA_DOCKER_VERSION
2023-09-29 07:51:22 +00:00
env_file: .env
environment:
OMA_CONFIG_TelecommandeHost: $NET$TELECOM
OMA_CONFIG_PigeTxtLoadFic: off
restart: unless-stopped
volumes:
- $SOUNDBASE_DIR:/soundbase
2024-01-02 16:50:14 +00:00
ports:
- $WEBSOCKET_PORT:9000
2023-09-29 07:51:22 +00:00
networks:
default:
ipv4_address: $NET$WEBSERVER
deploy:
resources:
limits:
cpus: '0.50'
memory: 100M
transcode:
image: savonet/liquidsoap:v2.1.4
2024-02-22 00:43:01 +00:00
env_file:
- .env
- $DATA_DIR/.env
2023-09-29 07:51:22 +00:00
volumes:
2023-10-02 21:45:09 +00:00
- ./liquidsoap.liq:/transcode.liq
2023-09-29 07:51:22 +00:00
- $SOUNDBASE_DIR:/soundbase
command: /transcode.liq
restart: unless-stopped
networks:
default:
ipv4_address: $NET.108
#radioking:
# image: jeancloud/liquidsoap:1.3.7
# env_file: .env
# volumes:
# - ./radioking.liq:/radioking.liq
# command: /radioking.liq
# restart: unless-stopped
# networks:
# default:
# ipv4_address: $NET.111
icecast:
image: infiniteproject/icecast
restart: unless-stopped
environment:
# echo -n "source:pass" | base64
ICECAST_ADMIN_USERNAME: admin
ICECAST_ADMIN_EMAIL: contact@oma-radio.fr
ICECAST_LOCATION: Rhône-Alpes
TZ: Europe/Paris
2024-01-02 16:50:14 +00:00
env_file: $DATA_DIR/.env
2023-09-29 07:51:22 +00:00
healthcheck:
test: "wget http://localhost:8000/direct.ogg -O - -t 1 -T 3 -S --spider 2>&1 | grep '200 OK' && wget http://localhost:8000/direct.mp3 -O - -t 1 -T 3 -S --spider 2>&1 | grep '200 OK'"
2024-01-02 16:50:14 +00:00
interval: 1h0m0s
2023-09-29 07:51:22 +00:00
timeout: 10s
retries: 3
start_period: 1m0s
networks:
default:
ipv4_address: $NET$ICECAST
networks:
default:
ipam:
config:
- subnet: $NET.0/24