- Move all supervisor logs from /tmp to /var/log/supivisor,

- Add /var/log/init & var/log/supervisor volumes.
This commit is contained in:
2024-11-11 22:56:40 +01:00
parent 28e24b2bd9
commit 1ac4e60906
7 changed files with 53 additions and 25 deletions

View File

@@ -1,31 +1,37 @@
# Rx3-Docker/Server Docker Image
#-------------------------------------------------------------------------------
name: ${IMG_NAME}
name: ${IMG_NAME}
services:
server:
container_name: ${IMG_NAME}
hostname: ${IMG_NAME}
container_name: ${IMG_NAME}
hostname: ${IMG_NAME}
image: ${IMG_URL}
image: ${IMG_URL}
build:
context: .
context: .
args:
- IMG_NAME=${IMG_NAME}
- IMG_NAME_FULL=${IMG_NAME_FULL}
- IMG_VERSION=${IMG_VERSION}
- IMG_MAINTAINER=${IMG_MAINTAINER}
- IMG_FROM_URL=${IMG_FROM_URL}
IMG_NAME: ${IMG_NAME}
IMG_NAME_FULL: ${IMG_NAME_FULL}
IMG_VERSION: ${IMG_VERSION}
IMG_MAINTAINER: ${IMG_MAINTAINER}
IMG_FROM_URL: ${IMG_FROM_URL}
- SERVER_PORT_SV_INT=${SERVER_PORT_SV_INT}
SERVER_LOG_INIT_DIR: ${SERVER_LOG_INIT_DIR}
SERVER_LOG_SV_DIR: ${SERVER_LOG_SV_DIR}
SERVER_PORT_SV_INT: ${SERVER_PORT_SV_INT}
restart: unless-stopped
restart: unless-stopped
environment:
SERVER_CROND_ENABLED: ${SERVER_CROND_ENABLED}
SERVER_CROND_ENABLED: ${SERVER_CROND_ENABLED}
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}"