Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

Update All-in-one Docker instructions

Dave Earley0bdd5f0808a4
diff --git a/docker/all-in-one/.env b/docker/all-in-one/.env
index 1a6c74a39..72fd12f58 100644
--- a/docker/all-in-one/.env
+++ b/docker/all-in-one/.env
@@ -1,2 +1,19 @@
+# See the README.md for informaiton on how to generate the JWT_SECRET and APP_KEY
APP_KEY=
JWT_SECRET=
+
+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
+
+LOG_CHANNEL=stderr
+QUEUE_CONNECTION=sync
+MAIL_MAILER=log
+
+FILESYSTEM_PUBLIC_DISK=public
+FILESYSTEM_PRIVATE_DISK=local
+
+APP_CDN_URL=http://localhost:8123/storage
+
+DATABASE_URL=postgresql://postgres:secret@postgres:5432/hi-events
diff --git a/docker/all-in-one/README.md b/docker/all-in-one/README.md
index 08cff3e19..39b50a867 100644
--- a/docker/all-in-one/README.md
+++ b/docker/all-in-one/README.md
@@ -1,6 +1,11 @@
# Hi.Events All-in-One Docker Image
-The all-in-one Docker image runs both the frontend and backend services in a single container. While it can be used in production, the recommended approach for production is to run the frontend and backend separately for better scalability and security.
+The all-in-one Docker image runs both the frontend and backend services in a single container. While it can be used in
+production, the recommended approach for production is to run the frontend and backend separately for better scalability and security.
+
+The provided docker-compose.yml file is meant for development and testing purposes. For production, you should use
+the [Docker image](https://hub.docker.com/r/daveearley/hi.events-all-in-one), or create your own Docker compose file with the
+necessary [configurations for production](https://hi.events/docs/getting-started/deploying#configuring-environment-variables).
## Quick Start with Docker
diff --git a/docker/all-in-one/docker-compose.yml b/docker/all-in-one/docker-compose.yml
index a33660b28..f315b428b 100644
--- a/docker/all-in-one/docker-compose.yml
+++ b/docker/all-in-one/docker-compose.yml
@@ -7,18 +7,18 @@ services:
ports:
- "8123:80"
environment:
- - 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
- - LOG_CHANNEL=stderr
- - QUEUE_CONNECTION=sync
- - MAIL_MAILER=array
+ - VITE_FRONTEND_URL=${VITE_FRONTEND_URL}
+ - VITE_API_URL_CLIENT=${VITE_API_URL_CLIENT}
+ - VITE_API_URL_SERVER=${VITE_API_URL_SERVER}
+ - VITE_STRIPE_PUBLISHABLE_KEY=${VITE_STRIPE_PUBLISHABLE_KEY}
+ - LOG_CHANNEL=${LOG_CHANNEL}
+ - QUEUE_CONNECTION=${QUEUE_CONNECTION}
+ - MAIL_MAILER=${MAIL_MAILER}
- APP_KEY=${APP_KEY}
- JWT_SECRET=${JWT_SECRET}
- - FILESYSTEM_PUBLIC_DISK=public
- - FILESYSTEM_PRIVATE_DISK=local
- - APP_CDN_URL=http://localhost:8123/storage
+ - FILESYSTEM_PUBLIC_DISK=${FILESYSTEM_PUBLIC_DISK}
+ - FILESYSTEM_PRIVATE_DISK=${FILESYSTEM_PRIVATE_DISK}
+ - APP_CDN_URL=${APP_CDN_URL}
- DATABASE_URL=postgresql://postgres:secret@postgres:5432/hi-events
depends_on: