Skip to content

Update all-in-one Docker setup #387

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 27, 2025
Merged
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
1 change: 1 addition & 0 deletions Dockerfile.all-in-one
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ COPY --from=node-frontend /app/frontend /app/frontend

COPY ./backend /app/backend
RUN mkdir -p /app/backend/bootstrap/cache \
&& mkdir -p /app/backend/storage \
&& chown -R www-data:www-data /app/backend \
&& find /app/backend -type d -exec chmod 755 {} \; \
&& find /app/backend -type f -exec chmod 644 {} \; \
Expand Down
32 changes: 27 additions & 5 deletions docker/all-in-one/.env
Original file line number Diff line number Diff line change
@@ -1,25 +1,47 @@
# See the README.md file for informaiton on how to generate the JWT_SECRET and APP_KEY
# See the README.md file for information on how to generate the JWT_SECRET and APP_KEY
APP_KEY=
JWT_SECRET=

# Frontend variables (Always prefixed with VITE_)
VITE_FRONTEND_URL=http://localhost:8123
VITE_API_URL_CLIENT=http://localhost:8123/api
VITE_API_URL_SERVER=http://localhost:80/api
VITE_STRIPE_PUBLISHABLE_KEY=pk_test
VITE_STRIPE_PUBLISHABLE_KEY=pk_test_123456789

# Backend variables
# These values may not be suitable for production environments.
# Please refer to the documentation for more information on how to configure these values
# https://hi.events/docs/getting-started/deploying
LOG_CHANNEL=stderr
QUEUE_CONNECTION=sync

# Application settings
APP_CDN_URL=http://localhost:8123/storage
APP_FRONTEND_URL=http://localhost:8123
APP_DISABLE_REGISTRATION=false
APP_SAAS_MODE_ENABLED=false
APP_SAAS_STRIPE_APPLICATION_FEE_PERCENT=0
APP_SAAS_STRIPE_APPLICATION_FEE_FIXED=0

# Email settings (Using log mailer for local testing)
MAIL_MAILER=log
MAIL_DRIVER=log
MAIL_HOST=mail.local
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
[email protected]
MAIL_FROM_NAME="Hi Events"

# File storage settings
FILESYSTEM_PUBLIC_DISK=public
FILESYSTEM_PRIVATE_DISK=local

APP_CDN_URL=http://localhost:8123/storage
APP_FRONTEND_URL=http://localhost:8123

# Database settings
DATABASE_URL=postgresql://postgres:secret@postgres:5432/hi-events

# Stripe settings (Replace with valid test keys if necessary)
STRIPE_PUBLIC_KEY=pk_test_123456789
STRIPE_SECRET_KEY=sk_test_123456789
STRIPE_WEBHOOK_SECRET=whsec_test_123456789