2024-11-12 17:02:53 +01:00
|
|
|
# Rx3-Docker/PostgreSQL Docker Image
|
2024-08-30 19:08:09 +02:00
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
# Global Settings
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
|
2024-11-12 17:02:53 +01:00
|
|
|
ORG_NAME="rx3-docker"
|
|
|
|
ORG_REGISTRY="docker.xor.rx3:5000"
|
|
|
|
|
|
|
|
ORG_URL_PREFIX="${ORG_REGISTRY}/${ORG_NAME}"
|
2024-08-30 19:08:09 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
# Image Settings
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
|
2024-11-12 17:02:53 +01:00
|
|
|
IMG_NAME="postgresql"
|
|
|
|
IMG_NAME_FULL="Rx3-Docker/PostgreSQL Docker Image"
|
|
|
|
IMG_VERSION="1.1.0-mga9"
|
2024-08-30 19:08:09 +02:00
|
|
|
IMG_MAINTAINER='"Arnaud G. GIBERT" <arnaud@rx3.net>'
|
|
|
|
|
2024-11-12 17:02:53 +01:00
|
|
|
IMG_URL_PREFIX="${ORG_URL_PREFIX}"
|
|
|
|
IMG_URL="${IMG_URL_PREFIX}/${IMG_NAME}:${IMG_VERSION}"
|
|
|
|
|
|
|
|
IMG_FROM_URL="${ORG_URL_PREFIX}/server:1.2.0-mga9"
|
|
|
|
|
2024-08-30 19:08:09 +02:00
|
|
|
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
# User Settings
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
|
2024-10-05 13:11:16 +02:00
|
|
|
ENV_PORT_OFFSET=0
|
|
|
|
SV_PORT_OFFSET=1000
|
|
|
|
|
2024-11-12 17:02:53 +01:00
|
|
|
DATABASE_PORT_MAIN_EXT=$(( 8032 + ${ENV_PORT_OFFSET}))
|
|
|
|
DATABASE_PORT_MAIN_INT=5432
|
|
|
|
|
|
|
|
DATABASE_PORT_SV_EXT=$(( ${DATABASE_PORT_MAIN_EXT} + ${SV_PORT_OFFSET}))
|
|
|
|
DATABASE_PORT_SV_INT=9001
|
|
|
|
|
|
|
|
DATABASE_LIB_DIR="/var/lib/pgsql"
|
|
|
|
DATABASE_DATA_DIR="${DATABASE_LIB_DIR}/data"
|
|
|
|
DATABASE_LOG_INIT_DIR="/var/log/init"
|
|
|
|
DATABASE_LOG_SV_DIR="/var/log/supervisor"
|
|
|
|
DATABASE_LOG_POSTGRES_DIR="/var/log/postgres"
|
|
|
|
DATABASE_LOG_POSTSQL_DIR="${DATABASE_LOG_SV_DIR}"
|
2024-10-05 13:11:16 +02:00
|
|
|
|
2024-08-30 19:08:09 +02:00
|
|
|
POSTGRESQL_UID=971
|
|
|
|
POSTGRESQL_GID=971
|
|
|
|
POSTGRESQL_POSTGRES_PASSWORD="postgresadmin"
|
|
|
|
POSTGRESQL_DATABASE="test"
|
|
|
|
POSTGRESQL_USER="test"
|
|
|
|
POSTGRESQL_PASSWORD="testadmin"
|