diff --git a/docker-compose/device-statistics.yml b/docker-compose/device-statistics.yml new file mode 100644 index 0000000000000000000000000000000000000000..0a1eee2f2c2670a7e9b95b321feb9b6e7579ff6c --- /dev/null +++ b/docker-compose/device-statistics.yml @@ -0,0 +1,35 @@ +# +# Docker compose file that launches an interactive iTango session. +# +# Connect to the interactive session with 'docker attach itango'. +# Disconnect with the Docker deattach sequence: <CTRL>+<P> <CTRL>+<Q> +# +# Defines: +# - itango: iTango interactive session +# +# Requires: +# - lofar-device-base.yml +# +version: '2' + +services: + device-statistics: + image: device-statistics + # build explicitly, as docker-compose does not understand a local image + # being shared among services. + build: + context: lofar-device-base + container_name: ${CONTAINER_NAME_PREFIX}device-statistics + network_mode: ${NETWORK_MODE} + volumes: + - ${TANGO_LOFAR_CONTAINER_MOUNT} + environment: + - TANGO_HOST=${TANGO_HOST} + entrypoint: + - /usr/local/bin/wait-for-it.sh + - ${TANGO_HOST} + - --timeout=30 + - --strict + - -- + - python3 -u ${TANGO_LOFAR_CONTAINER_DIR}/devices/statistics_device.py LTS -v + restart: on-failure