Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ RUN mkdir -p /opt/dreamfactory/storage/app \
# Add commercial files if running a licensed version
#COPY composer.* /opt/dreamfactory/

# Add access key to pull the private packages
#RUN composer config --global --auth github-oauth.github.com "DF_ACCESS_KEY"

# Clear composer cache and install packages
RUN composer clear-cache && \
COMPOSER_MEMORY_LIMIT=-1 composer install --no-dev --ignore-platform-reqs --no-scripts && \
Expand Down
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ services:
# HTTPS_HEADER: "on"
# APP_KEY: YOUR_APP_KEY
DB_DRIVER: mysql
DB_CONNECTION: mysql
DB_HOST: mysql
DB_USERNAME: df_admin
DB_PASSWORD: df_admin
Expand Down Expand Up @@ -57,6 +58,9 @@ services:
# LOGSDB_USERNAME: mongoadmin
# LOGSDB_PASSWORD: password
# LOGSDB_ENABLED: "true"

# Uncomment to enable MCP daemon process
# ENABLE_MCP_DAEMON: "true"
volumes:
- df-storage:/opt/dreamfactory/storage
# - ../dreamfactory-development-packages:/src/dreamfactory
Expand Down
6 changes: 6 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,12 @@ if [ -n "$SENDMAIL_DEFAULT_COMMAND" ]; then
sed -i "s/#SENDMAIL_DEFAULT_COMMAND=.*/SENDMAIL_DEFAULT_COMMAND=\"$(echo "$SENDMAIL_DEFAULT_COMMAND" | sed 's/\//\\\//g')\"/" .env
fi

if [ -n "$ENABLE_MCP_DAEMON" ]; then
echo "Starting MCP daemon..."
/opt/dreamfactory/vendor/dreamfactory/df-mcp-server/scripts/start-daemon.sh &
MCP_DAEMON_PID=$!
fi

# start php8.3-fpm
service php8.3-fpm start

Expand Down