The following has been developed on a Linux distro such as Ubuntu (Recommended). Guides on deploying to ECS, Kubernetes and other AWS services will be added in the future.
This docker compose file is for deploying a production environment for a single bench instance, with SSL certificates and a reverse proxy.
-
DNS record for your domain pointing to your server's Public IP address.
-
All .env variables must be set. See the .env.example file for more information.
-
Ports 80 and 443 must be open on your server. This will allow your server to receive a certificate from LetsEncrypt and allow traffic to your bench instance on HTTPS for security.
-
Docker and Docker Compose must be installed on your server. See the Docker documentation for more information.
- Pull the repo to your local machine:
git clone https://github.com/Henry-Do-Su/frappe_deployer.git
cd production
- Edit the .env file to include your domain name, email address and other variables. View the .env.example file for more information.
- You need to manually include the apps you want to install in your production environment. You will see it on line 90 of the production.yml file. These will be the apps that you included in apps.json if you built a custom image.
- Remember to update all the images refrences:
image: frappe/erpnext:v15.9.1
to your custom image if required.
- Run
docker-compose -p production -f production.yml up -d
and wait 10-20 minutes for the configuration and instalation to finish. - Access your site on https://YOUR-SITE.com