Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
123andy committed Oct 31, 2024
1 parent 83f8e4c commit 25622df
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
21 changes: 13 additions & 8 deletions rdc/.env-example
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,18 @@ TZ=America/Los_Angeles
# USER ID - TYPICALLY 501 or 502.
APACHE_RUN_USER_ID=501

# YOU LIKELY WANT TO HAVE YOUR SERVERS LOG FILES AVAILABLE AS WELL SO I RECOMMEND MOUNTING THIS TO A LOCATION
# ON YOUR COMPUTER. THE DEFAULT IS INSIDE OF THE VOLUMES FOLDER HERE:
# YOU LIKELY WANT TO HAVE YOUR SERVERS LOG FILES AVAILABLE AS WELL SO I RECOMMEND MOUNTING
# THIS TO A LOCATION ON YOUR COMPUTER. THE DEFAULT IS INSIDE OF THE VOLUMES FOLDER HERE:
# ALTERNATELY YOU CAN HAVE THEM PRESERVED IN A NON-MOUNTED DOCKER VOLUME BY USING logs-volume
# LOGS_DIR=logs-volume
LOGS_DIR=../logs

# THE APACHE LOGS CAN BE SENT TO THE LOGS_DIR ABOVE USING /var/log/redcap/x.log OR
# DUMPED TO DOCKER LOGS via /dev/stdout
APACHE_ERROR_LOG=/var/log/redcap/apache_errors.log
#APACHE_ACCESS_LOG=/dev/stdout
APACHE_ACCESS_LOG=/var/log/redcap/apache_access.log

# THIS IS WHERE YOUR WEBROOT IS LOCATED. CAN PLACE REDCAP IN THE PRESET 'web' FOLDER OR YOU
# CAN MOVE IT TO A DIFFERENT LOCATION ON YOUR COMPUTER, SUCH AS:
# WEBROOT_DIR=/Users/andy123/Desktop/redcap-local
Expand Down Expand Up @@ -56,14 +62,13 @@ WEB_OVERRIDES=./redcap-overrides/web
# ENABLE SSL SITE - THIS ALLOWS YOU TO USE HTTPS://localhost
# Please see the documentation. You need to create certificates before this will work.
WEB_ENABLE_SSL_SITE=false
WEB_SSL_PORT=443

# X-DEBUG CONFIGURATION
# THIS IS THE NAME OF THE PHPSTORM/XDEBUG SERVER
# This is set in PHPStorm -> Preference -> Languages & Frameworks -> PHP -> Server
# SEE DOCUMENTATION FOR MORE DETAILS ON XDEBUG SETUP AND CONFIGURATION
# Moved many other xdebug config options to redcap-overrides/web/php/80-xdebug.ini -- don't forget to rebuild image after changing
XDEBUG_CONFIG="client_host=host.docker.internal client_port=9003"
# The 'master' xdebug settings are controlled by the file redcap-overrides/web/php/80-xdebug.ini
# If you make changes, don't forget to take down and re-up your container.
# You can overwrite the xdebug settings my changing the file above OR you can
# use the environmental variable below
# XDEBUG_CONFIG="client_host=host.docker.internal client_port=9003"


### MYSQL (DB) ###
Expand Down
2 changes: 2 additions & 0 deletions rdc/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ services:
- ${LOGS_DIR}:/var/log
- ${MYSQL_OVERRIDES}:/etc/mysql/conf.d
- ${MYSQL_SCRIPTS}:/docker-entrypoint-initdb.d/
# You can likely comment out this ports section unless you want to directly
#connect to your database from your laptop
ports:
- 127.0.0.1:${MYSQL_PORT}:3306
networks:
Expand Down

0 comments on commit 25622df

Please sign in to comment.