From 38748299e3579668480e0a7117a5c25d9f96bc27 Mon Sep 17 00:00:00 2001 From: AbdelrahmanElawady Date: Wed, 3 Sep 2025 19:14:54 +0300 Subject: [PATCH 1/6] feat: add autoupgrade Signed-off-by: AbdelrahmanElawady --- docker-compose.yml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 8f9e8f2..23c15fc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,13 +1,11 @@ x-service: &service - image: blockcast/cdn_gateway_go:${IMAGE_VERSION:-stable} + image: blockcast/cdn_gateway_go:stable restart: always - network_mode: "service:blockcastd" volumes: - ${HOME}/.blockcast/certs:/var/opt/magma/certs - ${HOME}/.blockcast/snowflake:/etc/snowflake - - /var/run/docker.sock:/var/run/docker.sock - labels: - - "com.centurylinklabs.watchtower.enable=true" + - ${HOME}/.blockcast/compose:/etc/magma/compose + - /var/run/docker.sock:/var/run/docker.sock services: control_proxy: @@ -19,16 +17,8 @@ services: <<: *service container_name: blockcastd command: /usr/bin/blockcastd -logtostderr=true -v=0 - network_mode: bridge beacond: <<: *service container_name: beacond command: /usr/bin/beacond -logtostderr=true -v=0 - - watchtower: - image: containrrr/watchtower - environment: - WATCHTOWER_LABEL_ENABLE: "true" - volumes: - - /var/run/docker.sock:/var/run/docker.sock From da250b08f51f9e96324357f1d8cfeb6c7d04d825 Mon Sep 17 00:00:00 2001 From: Rajeev RK Date: Thu, 18 Sep 2025 05:01:44 +0530 Subject: [PATCH 2/6] Added docker profile relay-ats to allow for dynamic services configuration of the blockcast ATS container. RajeevRK --- docker-compose.yml | 35 +++++++++++++++++++++++++++++ variables.env | 56 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 variables.env diff --git a/docker-compose.yml b/docker-compose.yml index 23c15fc..09b2d57 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -22,3 +22,38 @@ services: <<: *service container_name: beacond command: /usr/bin/beacond -logtostderr=true -v=0 + + + # Optional ATS Relay service with different image - only starts with 'relay-ats' profile + relay-ats: + container_name: relay-ats + restart: always + profiles: ["relay-ats"] + image: blockcast/ats-standard:9.2.4-0.90fbf13db # Base Blockcast ATS image + domainname: infra.blockcast.dev + environment: + DEBUG_PORT: '2347' + env_file: + - variables.env + hostname: ${EDGE_HOST} + user: "root:root" + cap_add: + - SYS_ADMIN + - SYS_PTRACE + deploy: + resources: + limits: + cpus: '${CONTAINER_CPU_LIMIT}' + memory: ${CONTAINER_MEMORY_LIMIT} + reservations: + cpus: '${CONTAINER_CPU_RESERVATION}' + memory: ${CONTAINER_MEMORY_RESERVATION} + ports: + - "0.0.0.0:80:80" + - "0.0.0.0:443:443" + devices: + # Mount raw device file to /var/trafficserver/cache0 + - ${CACHE0_DEVICE}:/var/trafficserver/cache0:rwm + volumes: + - ${HOME}/.blockcast/certs:/etc/ssl/magma_certs + \ No newline at end of file diff --git a/variables.env b/variables.env new file mode 100644 index 0000000..eeee096 --- /dev/null +++ b/variables.env @@ -0,0 +1,56 @@ +TLD_DOMAIN=blockcast.net +INFRA_SUBDOMAIN=infra +CDN_NAME=pubic +CDN_SUBDOMAIN=cdn +EDGE_HOST=gw-testec01 +TO_HOST=to +TO_PORT=443 + +# Add the path to the cache storage raw device. typically /dev/sdXN for SATA/SCSI Disks or partitions and /dev/nvmeNnNpN for NVME SSD devices or partitions +# If you wish to use space on an existing filesystem, set up the cache storage via a loopback device following the instructions below : +# -- Linux / Windows with WSL +# -- [ $ truncate -s 100G ./cache_file && losetup --direct-io loop0 ./cache_file ] +# (For details see man truncate / man losetup) +# -- MacOS / BSD +# -- [ $ mkfile -n 100g ./cache_file ] +# -- [ $ sudo hdiutil attach -imagekey diskimage-class=CRawDiskImage -nomount ./cache_file] +# -- After running the hdiutil attach command, it will output something like /dev/disk2, which you can then use below. +# +# Also, remember to set the sizes in the above commands bsed on the minimums lised below for the Relay Node profile that you are choosing. +# +CACHE0_DEVICE=/dev/loop0 + + +# Selection of default sizing parameters of the various relay node profiles. Please uncomment only one of the below blocks to choose your relay node sizing + +# Resource limit Defaults for Relay Node Micro profile +# Minimum Required Cache Store Size = 100 GB +# Minimum Required Cache-out Bandwidth = 200 mbps +CONTAINER_CPU_LIMIT=4.0 +CONTAINER_CPU_RESERVATION=1.5 +CONTAINER_MEMORY_LIMIT=8G +CONTAINER_MEMORY_RESERVATION=2G + +# Resource limit Defaults for Relay Node Standard profile +# Minimum Required Cache Store Size = 2000 GB +# Minimum Required Cache-out Bandwidth = 1 gbps +#CONTAINER_CPU_LIMIT=16.0 +#CONTAINER_CPU_RESERVATION=4 +#CONTAINER_MEMORY_LIMIT=32G +#CONTAINER_MEMORY_RESERVATION=4G + +# Resource limit Defaults for Relay Node Large profile +# Minimum Required Cache Store Size = 5000 GB +# Minimum Required Cache-out Bandwidth = 10 gbps +#CONTAINER_CPU_LIMIT=32 +#CONTAINER_CPU_RESERVATION=4 +#CONTAINER_MEMORY_LIMIT=64G +#CONTAINER_MEMORY_RESERVATION=8G + +# Resource limit Defaults for Relay Node Super profile +# Minimum Required Cache Store Size = 10000 GB +# Minimum Required Cache-out Bandwidth = 25 gbps +#CONTAINER_CPU_LIMIT=64 +#CONTAINER_CPU_RESERVATION=16 +#CONTAINER_MEMORY_LIMIT=128G +#CONTAINER_MEMORY_RESERVATION=16G From 6734252fae43fb2fa925ca717193917387566d4a Mon Sep 17 00:00:00 2001 From: RajeevRK Date: Thu, 25 Sep 2025 20:42:03 +0530 Subject: [PATCH 3/6] Revert "Added docker profile relay-ats to allow for dynamic services configuration of the blockcast ATS container" to be re-commited in a separate branch. RajeevRK This reverts commit da250b08f51f9e96324357f1d8cfeb6c7d04d825. --- docker-compose.yml | 35 ----------------------------- variables.env | 56 ---------------------------------------------- 2 files changed, 91 deletions(-) delete mode 100644 variables.env diff --git a/docker-compose.yml b/docker-compose.yml index 09b2d57..23c15fc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -22,38 +22,3 @@ services: <<: *service container_name: beacond command: /usr/bin/beacond -logtostderr=true -v=0 - - - # Optional ATS Relay service with different image - only starts with 'relay-ats' profile - relay-ats: - container_name: relay-ats - restart: always - profiles: ["relay-ats"] - image: blockcast/ats-standard:9.2.4-0.90fbf13db # Base Blockcast ATS image - domainname: infra.blockcast.dev - environment: - DEBUG_PORT: '2347' - env_file: - - variables.env - hostname: ${EDGE_HOST} - user: "root:root" - cap_add: - - SYS_ADMIN - - SYS_PTRACE - deploy: - resources: - limits: - cpus: '${CONTAINER_CPU_LIMIT}' - memory: ${CONTAINER_MEMORY_LIMIT} - reservations: - cpus: '${CONTAINER_CPU_RESERVATION}' - memory: ${CONTAINER_MEMORY_RESERVATION} - ports: - - "0.0.0.0:80:80" - - "0.0.0.0:443:443" - devices: - # Mount raw device file to /var/trafficserver/cache0 - - ${CACHE0_DEVICE}:/var/trafficserver/cache0:rwm - volumes: - - ${HOME}/.blockcast/certs:/etc/ssl/magma_certs - \ No newline at end of file diff --git a/variables.env b/variables.env deleted file mode 100644 index eeee096..0000000 --- a/variables.env +++ /dev/null @@ -1,56 +0,0 @@ -TLD_DOMAIN=blockcast.net -INFRA_SUBDOMAIN=infra -CDN_NAME=pubic -CDN_SUBDOMAIN=cdn -EDGE_HOST=gw-testec01 -TO_HOST=to -TO_PORT=443 - -# Add the path to the cache storage raw device. typically /dev/sdXN for SATA/SCSI Disks or partitions and /dev/nvmeNnNpN for NVME SSD devices or partitions -# If you wish to use space on an existing filesystem, set up the cache storage via a loopback device following the instructions below : -# -- Linux / Windows with WSL -# -- [ $ truncate -s 100G ./cache_file && losetup --direct-io loop0 ./cache_file ] -# (For details see man truncate / man losetup) -# -- MacOS / BSD -# -- [ $ mkfile -n 100g ./cache_file ] -# -- [ $ sudo hdiutil attach -imagekey diskimage-class=CRawDiskImage -nomount ./cache_file] -# -- After running the hdiutil attach command, it will output something like /dev/disk2, which you can then use below. -# -# Also, remember to set the sizes in the above commands bsed on the minimums lised below for the Relay Node profile that you are choosing. -# -CACHE0_DEVICE=/dev/loop0 - - -# Selection of default sizing parameters of the various relay node profiles. Please uncomment only one of the below blocks to choose your relay node sizing - -# Resource limit Defaults for Relay Node Micro profile -# Minimum Required Cache Store Size = 100 GB -# Minimum Required Cache-out Bandwidth = 200 mbps -CONTAINER_CPU_LIMIT=4.0 -CONTAINER_CPU_RESERVATION=1.5 -CONTAINER_MEMORY_LIMIT=8G -CONTAINER_MEMORY_RESERVATION=2G - -# Resource limit Defaults for Relay Node Standard profile -# Minimum Required Cache Store Size = 2000 GB -# Minimum Required Cache-out Bandwidth = 1 gbps -#CONTAINER_CPU_LIMIT=16.0 -#CONTAINER_CPU_RESERVATION=4 -#CONTAINER_MEMORY_LIMIT=32G -#CONTAINER_MEMORY_RESERVATION=4G - -# Resource limit Defaults for Relay Node Large profile -# Minimum Required Cache Store Size = 5000 GB -# Minimum Required Cache-out Bandwidth = 10 gbps -#CONTAINER_CPU_LIMIT=32 -#CONTAINER_CPU_RESERVATION=4 -#CONTAINER_MEMORY_LIMIT=64G -#CONTAINER_MEMORY_RESERVATION=8G - -# Resource limit Defaults for Relay Node Super profile -# Minimum Required Cache Store Size = 10000 GB -# Minimum Required Cache-out Bandwidth = 25 gbps -#CONTAINER_CPU_LIMIT=64 -#CONTAINER_CPU_RESERVATION=16 -#CONTAINER_MEMORY_LIMIT=128G -#CONTAINER_MEMORY_RESERVATION=16G From 44cef306a64ab0cb9e10f7bc0ed5011de397d2be Mon Sep 17 00:00:00 2001 From: R K Rajeev Date: Thu, 25 Sep 2025 20:47:47 +0530 Subject: [PATCH 4/6] Added docker profiles relay-ats-{nocache|cache0|cache01|cache012} to allow for dynamic services configuration of the blockcast ATS container, with dynamic storage configuration support. RajeevRK --- docker-compose.yml | 62 ++++++++++++++++++++++++++++++++++++++++++++++ variables.env | 56 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 118 insertions(+) create mode 100644 variables.env diff --git a/docker-compose.yml b/docker-compose.yml index 23c15fc..448bfa4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,6 +7,36 @@ x-service: &service - ${HOME}/.blockcast/compose:/etc/magma/compose - /var/run/docker.sock:/var/run/docker.sock +# Base relay service without cache devices +x-relay-base: &relay-base + container_name: relay-ats + restart: always + image: blockcast/ats-standard:9.2.4-0.90fbf13db + domainname: infra.blockcast.dev + environment: + DEBUG_PORT: '2347' + env_file: + - variables.env + hostname: ${EDGE_HOST:-gw-testec01} + user: "root:root" + cap_add: + - SYS_ADMIN + - SYS_PTRACE + deploy: + resources: + limits: + cpus: '${CONTAINER_CPU_LIMIT:-4.0}' + memory: ${CONTAINER_MEMORY_LIMIT:-8G} + reservations: + cpus: '${CONTAINER_CPU_RESERVATION:-1.5}' + memory: ${CONTAINER_MEMORY_RESERVATION:-2G} + ports: + - "0.0.0.0:80:80" + - "0.0.0.0:443:443" + volumes: + - ${HOME}/.blockcast/certs:/etc/ssl/magma_certs + + services: control_proxy: <<: *service @@ -22,3 +52,35 @@ services: <<: *service container_name: beacond command: /usr/bin/beacond -logtostderr=true -v=0 + + + # ATS Relay service - use appropriate profile based on needed cache devices + # Default relay service without cache devices - use 'relay-ats-nocache' profile + relay-ats-nocache: + <<: *relay-base + profiles: ["relay-ats-nocache"] + + # Relay service with cache0 device - use 'relay-ats-cache0' profile + relay-ats-cache0: + <<: *relay-base + profiles: ["relay-ats-cache0"] + devices: + - ${CACHE0_DEVICE}:/var/trafficserver/cache0:rwm + + # Relay service with cache0 and cache1 devices - use 'relay-ats-cache01' profile + relay-ats-cache01: + <<: *relay-base + profiles: ["relay-ats-cache01"] + devices: + - ${CACHE0_DEVICE}:/var/trafficserver/cache0:rwm + - ${CACHE1_DEVICE}:/var/trafficserver/cache1:rwm + + # Relay service with all cache devices - use 'relay-ats-cache012' profile + relay-ats-cache012: + <<: *relay-base + profiles: ["relay-ats-cache012"] + devices: + - ${CACHE0_DEVICE}:/var/trafficserver/cache0:rwm + - ${CACHE1_DEVICE}:/var/trafficserver/cache1:rwm + - ${CACHE2_DEVICE}:/var/trafficserver/cache2:rwm + \ No newline at end of file diff --git a/variables.env b/variables.env new file mode 100644 index 0000000..27bc40e --- /dev/null +++ b/variables.env @@ -0,0 +1,56 @@ +TLD_DOMAIN=blockcast.net +INFRA_SUBDOMAIN=infra +CDN_NAME=pubic +CDN_SUBDOMAIN=cdn +EDGE_HOST=gw-2da59cd0-85f7-11f0-ad41-a53a81b98aae +TO_HOST=to +TO_PORT=443 + +# Add the path to the cache storage raw device. typically /dev/sdXN for SATA/SCSI Disks or partitions and /dev/nvmeNnNpN for NVME SSD devices or partitions +# If you wish to use space on an existing filesystem, set up the cache storage via a loopback device following the instructions below : +# -- Linux / Windows with WSL +# -- [ $ truncate -s 100G ./cache_file && losetup --direct-io loop0 ./cache_file ] +# (For details see man truncate / man losetup) +# -- MacOS / BSD +# -- [ $ mkfile -n 100g ./cache_file ] +# -- [ $ sudo hdiutil attach -imagekey diskimage-class=CRawDiskImage -nomount ./cache_file] +# -- After running the hdiutil attach command, it will output something like /dev/disk2, which you can then use below. +# +# Also, remember to set the sizes in the above commands bsed on the minimums lised below for the Relay Node profile that you are choosing. +# +CACHE0_DEVICE=/dev/loop0 + + +# Selection of default sizing parameters of the various relay node profiles. Please uncomment only one of the below blocks to choose your relay node sizing + +# Resource limit Defaults for Relay Node Micro profile +# Minimum Required Cache Store Size = 100 GB +# Minimum Required Cache-out Bandwidth = 200 mbps +CONTAINER_CPU_LIMIT=4.0 +CONTAINER_CPU_RESERVATION=1.5 +CONTAINER_MEMORY_LIMIT=8G +CONTAINER_MEMORY_RESERVATION=2G + +# Resource limit Defaults for Relay Node Standard profile +# Minimum Required Cache Store Size = 2000 GB +# Minimum Required Cache-out Bandwidth = 1 gbps +#CONTAINER_CPU_LIMIT=16.0 +#CONTAINER_CPU_RESERVATION=4 +#CONTAINER_MEMORY_LIMIT=32G +#CONTAINER_MEMORY_RESERVATION=4G + +# Resource limit Defaults for Relay Node Large profile +# Minimum Required Cache Store Size = 5000 GB +# Minimum Required Cache-out Bandwidth = 10 gbps +#CONTAINER_CPU_LIMIT=32 +#CONTAINER_CPU_RESERVATION=4 +#CONTAINER_MEMORY_LIMIT=64G +#CONTAINER_MEMORY_RESERVATION=8G + +# Resource limit Defaults for Relay Node Super profile +# Minimum Required Cache Store Size = 10000 GB +# Minimum Required Cache-out Bandwidth = 25 gbps +#CONTAINER_CPU_LIMIT=64 +#CONTAINER_CPU_RESERVATION=16 +#CONTAINER_MEMORY_LIMIT=128G +#CONTAINER_MEMORY_RESERVATION=16G From c617ac374bd672419182e5f9f526b425b9aee980 Mon Sep 17 00:00:00 2001 From: R K Rajeev Date: Tue, 2 Dec 2025 22:49:31 +0530 Subject: [PATCH 5/6] Commit of new Trafficserver services with an updated docker-compose.yaml with profiles for dynamic services. Added an init container initialising the cache store device with luks encryption pre normal ATS container startup. RajeevRK --- variables.env => .env | 18 +++++-------- docker-compose.yml | 59 ++++++++++++++++++++++++++++++------------- 2 files changed, 48 insertions(+), 29 deletions(-) rename variables.env => .env (60%) diff --git a/variables.env b/.env similarity index 60% rename from variables.env rename to .env index 27bc40e..4921880 100644 --- a/variables.env +++ b/.env @@ -6,19 +6,12 @@ EDGE_HOST=gw-2da59cd0-85f7-11f0-ad41-a53a81b98aae TO_HOST=to TO_PORT=443 -# Add the path to the cache storage raw device. typically /dev/sdXN for SATA/SCSI Disks or partitions and /dev/nvmeNnNpN for NVME SSD devices or partitions -# If you wish to use space on an existing filesystem, set up the cache storage via a loopback device following the instructions below : -# -- Linux / Windows with WSL -# -- [ $ truncate -s 100G ./cache_file && losetup --direct-io loop0 ./cache_file ] -# (For details see man truncate / man losetup) -# -- MacOS / BSD -# -- [ $ mkfile -n 100g ./cache_file ] -# -- [ $ sudo hdiutil attach -imagekey diskimage-class=CRawDiskImage -nomount ./cache_file] -# -- After running the hdiutil attach command, it will output something like /dev/disk2, which you can then use below. +# Add the path to the cache storage luks device. typically /dev/mapper/cacheN and ensure that the dynamic encryption key is set appropriately via the beacon +# +# Also, remember to set the cache sizes based on the minimums lised below for the Relay Node profile that you are choosing. # -# Also, remember to set the sizes in the above commands bsed on the minimums lised below for the Relay Node profile that you are choosing. -# -CACHE0_DEVICE=/dev/loop0 +CACHE0_ENC_PASSWORD=OVERRIDE-CACHE0-ENC-PASSWORD +CACHE0_DEVICE=/dev/mapper/cache0 # Selection of default sizing parameters of the various relay node profiles. Please uncomment only one of the below blocks to choose your relay node sizing @@ -30,6 +23,7 @@ CONTAINER_CPU_LIMIT=4.0 CONTAINER_CPU_RESERVATION=1.5 CONTAINER_MEMORY_LIMIT=8G CONTAINER_MEMORY_RESERVATION=2G +CONTAINER_CACHE0_SIZE_GB=100 # Resource limit Defaults for Relay Node Standard profile # Minimum Required Cache Store Size = 2000 GB diff --git a/docker-compose.yml b/docker-compose.yml index 448bfa4..0063d15 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,7 +16,7 @@ x-relay-base: &relay-base environment: DEBUG_PORT: '2347' env_file: - - variables.env + - .env hostname: ${EDGE_HOST:-gw-testec01} user: "root:root" cap_add: @@ -54,33 +54,58 @@ services: command: /usr/bin/beacond -logtostderr=true -v=0 + # Init container for relay-ats services - must complete successfully before relay-ats-* services start + relay-ats-init: + build: + context: . + dockerfile: dockerfile-init + target: edge + args: + BASE_IMAGE: ${BASE_IMAGE:-almalinux} + RHEL_VERSION: ${RHEL_VERSION:-9-minimal} + image: blockcast/ats-standard-init:9.2.4-0.90fbf13db + container_name: relay-ats-init + domainname: infra.blockcast.dev + environment: + CONTAINER_CACHE0_SIZE_GB: ${CONTAINER_CACHE0_SIZE_GB:-100} + CACHE0_ENC_PASSWORD: ${CACHE0_ENC_PASSWORD:-} + env_file: + - .env + user: "root:root" + privileged: true + cap_add: + - SYS_ADMIN + - SYS_PTRACE + devices: + - /dev/mapper/control:/dev/mapper/control:rwm + - /dev/loop-control:/dev/loop-control:rwm + volumes: + - shared:/shared + - ${HOME}/.blockcast/relaycache:/var/trafficserver/relaycache + - /dev/mapper:/dev/mapper + restart: "no" + profiles: ["relay-ats-nocache", "relay-ats-cache0"] + # ATS Relay service - use appropriate profile based on needed cache devices # Default relay service without cache devices - use 'relay-ats-nocache' profile relay-ats-nocache: <<: *relay-base profiles: ["relay-ats-nocache"] + depends_on: + relay-ats-init: + condition: service_completed_successfully # Relay service with cache0 device - use 'relay-ats-cache0' profile relay-ats-cache0: <<: *relay-base profiles: ["relay-ats-cache0"] + depends_on: + relay-ats-init: + condition: service_completed_successfully devices: - ${CACHE0_DEVICE}:/var/trafficserver/cache0:rwm - # Relay service with cache0 and cache1 devices - use 'relay-ats-cache01' profile - relay-ats-cache01: - <<: *relay-base - profiles: ["relay-ats-cache01"] - devices: - - ${CACHE0_DEVICE}:/var/trafficserver/cache0:rwm - - ${CACHE1_DEVICE}:/var/trafficserver/cache1:rwm - # Relay service with all cache devices - use 'relay-ats-cache012' profile - relay-ats-cache012: - <<: *relay-base - profiles: ["relay-ats-cache012"] - devices: - - ${CACHE0_DEVICE}:/var/trafficserver/cache0:rwm - - ${CACHE1_DEVICE}:/var/trafficserver/cache1:rwm - - ${CACHE2_DEVICE}:/var/trafficserver/cache2:rwm - \ No newline at end of file +volumes: + shared: + From d00663394abde68d37ead7bfb4ff42b2f3961445 Mon Sep 17 00:00:00 2001 From: R K Rajeev Date: Wed, 3 Dec 2025 00:06:46 +0530 Subject: [PATCH 6/6] Renamed container and profile names to comply with magma requirements (no use of '-'). RajeevRK --- docker-compose.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 0063d15..fa9717b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,7 +9,7 @@ x-service: &service # Base relay service without cache devices x-relay-base: &relay-base - container_name: relay-ats + container_name: relayats restart: always image: blockcast/ats-standard:9.2.4-0.90fbf13db domainname: infra.blockcast.dev @@ -55,7 +55,7 @@ services: # Init container for relay-ats services - must complete successfully before relay-ats-* services start - relay-ats-init: + relayatsinit: build: context: . dockerfile: dockerfile-init @@ -64,7 +64,7 @@ services: BASE_IMAGE: ${BASE_IMAGE:-almalinux} RHEL_VERSION: ${RHEL_VERSION:-9-minimal} image: blockcast/ats-standard-init:9.2.4-0.90fbf13db - container_name: relay-ats-init + container_name: relayatsinit domainname: infra.blockcast.dev environment: CONTAINER_CACHE0_SIZE_GB: ${CONTAINER_CACHE0_SIZE_GB:-100} @@ -84,23 +84,23 @@ services: - ${HOME}/.blockcast/relaycache:/var/trafficserver/relaycache - /dev/mapper:/dev/mapper restart: "no" - profiles: ["relay-ats-nocache", "relay-ats-cache0"] + profiles: ["relayatsnocache", "relayats"] # ATS Relay service - use appropriate profile based on needed cache devices # Default relay service without cache devices - use 'relay-ats-nocache' profile - relay-ats-nocache: + relayatsnocache: <<: *relay-base - profiles: ["relay-ats-nocache"] + profiles: ["relayatsnocache"] depends_on: - relay-ats-init: + relayatsinit: condition: service_completed_successfully - # Relay service with cache0 device - use 'relay-ats-cache0' profile - relay-ats-cache0: + # Relay service with cache0 device - use 'relayats' profile + relayats: <<: *relay-base - profiles: ["relay-ats-cache0"] + profiles: ["relayats"] depends_on: - relay-ats-init: + relayatsinit: condition: service_completed_successfully devices: - ${CACHE0_DEVICE}:/var/trafficserver/cache0:rwm