What you'll need
- A bunny.net account (Log in or sign up for a free trial).
- An accessible image from either Docker or Github. You may also have a private container registry set up via GitHub or Docker. You will need to integrate this registry with the Magic Containers platform. You can find details to link your registry here
Select Magic Containers and click the Add App button.

Magic deployment
NOTE : For a detailed guide on deploying an app using the Magic deployment option, please refer to the quickstart documentation.
Single and advanced deployment
- Base region: Base regions are those where your app will always be deployed. You must select at least one base region and there is no maximum limit.
- Enabled region: The provisioning system will actively monitor user locations and behavior. If it identifies active users in a specific region, it will dynamically deploy the app to accomodate the user traffic. Conversely, if there is no user activity in a region, the app will not be deployed in that area.

- If the Enabled Regions Set and Base Region Set are equal, the provisioner will use Static Provisioning. In this mode, the regions deployed over time will remain the same.
- If the sets are different, the provisioner will use Auto Provisioning. Regions are chosen based on end-user activity. If users are active in a region, the app will be deployed there. If there are no active users in a region, the app won't be deployed.
Set the minimum and maximum number of instances, and click Add Container.
6. Name your container (ensure each container has a unique name within the application).

Select the container registry and image and click Add Container.
1. Go to the Endpoints tab and click Add New Endpoint.
- You need to name the endpoint (it must have a unique name).
- Decide how you want to expose the app, either using CDN or Anycast.
- Define the container port, which is the port on which the application is listening inside the container.
- Specify whether your application inside the container uses SSL for origin (only CDN setting).



Undeploying your app
1. Select Magic Containers and select your app from the dropdown menu.

2. Click on the hamburger menu icon (three horizontal dots) on the right side of the screen and click the Undeploy button.

3. In the pop-up window, click the Undeploy button to confirm.

Need help or encountered issues?
If you encounter any difficulties or have questions while following this guide, our support team is here to assist you. Please don't hesitate to contact us via the support request form for prompt assistance.
Our dedicated support team is ready to help you resolve any issues you might face during the deployment process, provide additional guidance, or answer your questions.