From 5e7e48b5e3ad28ceb5b84104e23fa0b6b236c9f3 Mon Sep 17 00:00:00 2001 From: "Arnaud G. GIBERT" Date: Mon, 11 Nov 2024 23:11:13 +0100 Subject: [PATCH] - Add /var/log/init & /var/log/supervisor volumes. --- ReleaseNotes.txt | 1 + compose.yaml | 6 +++++- env.dist | 3 +++ var/log/init/.gitignore | 4 ++++ var/log/supervisor/.gitignore | 4 ++++ 5 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 var/log/init/.gitignore create mode 100644 var/log/supervisor/.gitignore diff --git a/ReleaseNotes.txt b/ReleaseNotes.txt index 024b808..c660e39 100644 --- a/ReleaseNotes.txt +++ b/ReleaseNotes.txt @@ -6,6 +6,7 @@ Rx3-Docker/Java V 1.1.0 - A. GIBERT - 2024/11/11 - New version naming standard, - Now use docker_tools for .env building, - Use now rx3-docker/server:1.2.0-mga9 image, +- Add /var/log/init & /var/log/supervisor volumes, - Strip down dependencies. diff --git a/compose.yaml b/compose.yaml index ae57b7a..14556c3 100644 --- a/compose.yaml +++ b/compose.yaml @@ -15,12 +15,16 @@ services: context: . args: IMG_NAME: ${IMG_NAME} - IMG_FULL_NAME: ${IMG_NAME_FULL} + IMG_NAME_FULL: ${IMG_NAME_FULL} IMG_VERSION: ${IMG_VERSION} IMG_MAINTAINER: ${IMG_MAINTAINER} IMG_FROM_URL: ${IMG_FROM_URL} restart: unless-stopped + volumes: + - ./var/log/init:${SERVER_LOG_INIT_DIR} + - ./var/log/supervisor:${SERVER_LOG_SV_DIR} + ports: - "127.0.0.1:${SERVER_PORT_SV_EXT}:${SERVER_PORT_SV_INT}" diff --git a/env.dist b/env.dist index dc74d87..b30525f 100644 --- a/env.dist +++ b/env.dist @@ -40,4 +40,7 @@ SERVER_PORT_MAIN_EXT=$(( 8014 + ${ENV_PORT_OFFSET})) SERVER_PORT_SV_EXT=$(( ${SERVER_PORT_MAIN_EXT} + ${SV_PORT_OFFSET})) SERVER_PORT_SV_INT=9001 +SERVER_LOG_INIT_DIR="/var/log/init" +SERVER_LOG_SV_DIR="/var/log/supervisor" + SERVER_CROND_ENABLED="FALSE" diff --git a/var/log/init/.gitignore b/var/log/init/.gitignore new file mode 100644 index 0000000..5e7d273 --- /dev/null +++ b/var/log/init/.gitignore @@ -0,0 +1,4 @@ +# Ignore everything in this directory +* +# Except this file +!.gitignore diff --git a/var/log/supervisor/.gitignore b/var/log/supervisor/.gitignore new file mode 100644 index 0000000..5e7d273 --- /dev/null +++ b/var/log/supervisor/.gitignore @@ -0,0 +1,4 @@ +# Ignore everything in this directory +* +# Except this file +!.gitignore