Skip to content

Commit

Permalink
Create .env.docker
Browse files Browse the repository at this point in the history
Creates the .env specifically for docker that omits key variables needed to be defined at runtime by the user.
  • Loading branch information
jniles committed May 14, 2024
1 parent 4488bd3 commit 804a184
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .env.docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This .env file is for use in the Docker build step, setting all the internal
# variables that could be later overridden by the user.

# We expect the following variables to be set by the user:
# DB_HOST
# DB_USER
# DB_PASS
# REDIS_HOST

# define the port on which the HTTP server will listen.
PORT=8080

# MySQL Database Configuration
# The following variables should be pretty straightforward.
# DB_PORT is the MySQL server port
DB_PORT=3306

# Secret Session Variables
# Used by express-session middleware for encryption. This is just a temporary example.
# In production, use a secure generator for this:
# EX: openssl rand -hex 25
SESS_SECRET=zC8YmujYRe9EoJVXUEJVzuK3pxDCJzYySJo5Vj5CefwXiiPYCVehutAJVqQ6SNwd

# define logging level for the npm debug module.
DEBUG=app,errors

# define the directory where reports, files, and images will be uploaded.
# Upload directory requirements:
# - Must be writable by the application user.
# - Must be a relative directory within the Bhima installation.
UPLOAD_DIR='client/upload'

# Report directory (Define where reports will be saved on the server)
REPORT_DIR=''

# SMTP Credentials
SMTP_USERNAME="user@smtp.server"
SMTP_PASSWORD="SomePassword"
SMTP_HOST="some.host.com"

0 comments on commit 804a184

Please sign in to comment.