61 lines
2.0 KiB
Bash
61 lines
2.0 KiB
Bash
##############################################################################################
|
|
# Values to be used for substitution by docker compose in compose.yml AND .*.env files
|
|
##############################################################################################
|
|
|
|
APPLICATION_NAME=sftpgo
|
|
|
|
DOCKERDIR=/mnt/SSD1/docker
|
|
MEDIADIR=/mnt/stpool1/NData1/Media
|
|
|
|
STACKSDIR=${DOCKERDIR}/stacks/${APPLICATION_NAME}
|
|
DATAROOT=${DOCKERDIR}/data
|
|
DATADIR=${DATAROOT}/${APPLICATION_NAME}
|
|
SECRETSDIR=${STACKSDIR}/secrets
|
|
CERTSDIR=${DATADIR}/certs
|
|
CREDENTIALSDIR=${DATADIR}/credentials
|
|
# USERDATADIR=/mnt/stpool1/NData2/appdata/${APPLICATION_NAME}
|
|
USERDATADIR=${MEDIADIR}/uploads
|
|
USERTEMPDIR=${MEDIADIR}/uploads_temp
|
|
USERSHAREDDIR=${MEDIADIR}/uploads_shared
|
|
BACKUPDIR=${DATADIR}/appdata
|
|
HOMEDIR=/mnt/stpool1/Users/${APPLICATION_NAME}
|
|
|
|
PUID=3065
|
|
PGID=3066 # using 'media' GID 3017
|
|
MEDIA_GID=3017
|
|
TZ=Africa/Johannesburg
|
|
|
|
SERVICE_PORT=8080
|
|
TCP_PORT1=2022
|
|
TCP_PORT2=2023
|
|
TCP_PORT3=2024
|
|
TCP_PORT4=2025
|
|
TCP_PORT5=2026
|
|
TCP_PORT6=2027
|
|
TCP_PORT7=2028
|
|
TCP_PORT8=2029
|
|
DOMAINNAME=sthome.org
|
|
SUBDOMAIN1=sftpgo
|
|
|
|
DB_TYPE=postgresql
|
|
POSTGRES_DB_PORT=5432
|
|
POSTGRES_DB_HOST=${APPLICATION_NAME}_postgresql
|
|
POSTGRES_DB_FILE=/run/secrets/sftpgo_postgresql_database
|
|
POSTGRES_USER_FILE=/run/secrets/sftpgo_postgresql_username
|
|
POSTGRES_PASSWORD_FILE=/run/secrets/sftpgo_postgresql_password
|
|
|
|
SMTP_HOST_FILE=/run/secrets/smtp_host
|
|
SMTP_FROM_FILE=/run/secrets/smtp_from
|
|
SMTP_USERNAME_FILE=/run/secrets/smtp_username
|
|
SMTP_PASSWORD_FILE=/run/secrets/smtp_password
|
|
|
|
#####################################################################################
|
|
# if /run/secrets works, remove the following lines from .env file and append _FILE to corresponding variables in .sftpgo.env file
|
|
POSTGRES_DB=sftpgo
|
|
POSTGRES_USER=sftpgo
|
|
POSTGRES_PASSWORD=39rREgsGSAZDCiVUYDgC0tlT+fa/xziFWpe9sEPJiNlEt9qJe6pETxMkxVLaSZCu
|
|
SMTP_HOST=smtp.telkomsa.net
|
|
SMTP_FROM=stuurman30@telkomsa.net
|
|
SMTP_USERNAME=stuurman30@telkomsa.net
|
|
SMTP_PASSWORD=UltraM3!2024#
|
|
##################################################################################### |