From 235b7d81a7d145f342d59245fd51fb66e48e4160 Mon Sep 17 00:00:00 2001
From: stedif <stefano.difrischia@inaf.it>
Date: Tue, 2 Nov 2021 18:21:46 +0100
Subject: [PATCH] L2SS-429: align new containers with master

---
 docker-compose/archiver-timescale.yml | 24 +++++++++++++++++++++---
 1 file changed, 21 insertions(+), 3 deletions(-)

diff --git a/docker-compose/archiver-timescale.yml b/docker-compose/archiver-timescale.yml
index 9b5c2bb30..8b7c78263 100644
--- a/docker-compose/archiver-timescale.yml
+++ b/docker-compose/archiver-timescale.yml
@@ -5,7 +5,7 @@ services:
     image: timescaledb
     build:
         context: timescaledb
-    container_name: archiver-timescale
+    container_name: ${CONTAINER_NAME_PREFIX}archiver-timescale
     networks:
       - control
     ports:
@@ -15,6 +15,12 @@ services:
     environment:
       - POSTGRES_PASSWORD=password
       - TANGO_HOST=${TANGO_HOST}
+    logging:
+      driver: syslog
+      options:
+        syslog-address: udp://${LOG_HOSTNAME}:1514
+        syslog-format: rfc3164
+        tag: "{{.Name}}"
     restart: unless-stopped
   
   hdbppts-cm:
@@ -23,7 +29,7 @@ services:
         context: ../docker/tango/tango-archiver-ts
     networks:
       - control
-    container_name: hdbppts-cm
+    container_name: ${CONTAINER_NAME_PREFIX}hdbppts-cm
     depends_on:
       - databaseds
       - dsconfig
@@ -36,6 +42,12 @@ services:
       wait-for-it.sh archiver-timescale:5432 --timeout=30 --strict --
       wait-for-it.sh ${TANGO_HOST} --timeout=30 --strict --
             hdbppcm-srv 02"
+    logging:
+        driver: syslog
+        options:
+          syslog-address: udp://${LOG_HOSTNAME}:1514
+          syslog-format: rfc3164
+          tag: "{{.Name}}"
   
   hdbppts-es:
     image: hdbppts-es
@@ -43,7 +55,7 @@ services:
         context: ../docker/tango/tango-archiver-ts
     networks:
       - control
-    container_name: hdbppts-es
+    container_name: ${CONTAINER_NAME_PREFIX}hdbppts-es
     depends_on:
       - databaseds
       - dsconfig
@@ -56,4 +68,10 @@ services:
       wait-for-it.sh archiver-timescale:5432 --timeout=30 --strict --
       wait-for-it.sh ${TANGO_HOST} --timeout=30 --strict --
             hdbppes-srv 02"
+    logging:
+        driver: syslog
+        options:
+          syslog-address: udp://${LOG_HOSTNAME}:1514
+          syslog-format: rfc3164
+          tag: "{{.Name}}"
     restart: unless-stopped
-- 
GitLab