Logo

Cake Planner

Backend

Deployment Guide

This guide describes how to deploy the Cake Planner Backend using Docker Compose, Nginx, and the AppImage.


Table of Contents


Architecture

The deployment consists of two containers:

  1. cakeplanner: Runs the backend application via AppImage.
  2. nginx: Acts as a Reverse Proxy, forwarding specific ports (e.g., 80 or 443) to the backend.

Prerequisites

Configuration Files

The docs/deployment/ directory contains all necessary files:

Step-by-Step Deployment

1. Build the AppImage

First, ensure you have built the project create_appimage.sh (see Build Process). Copy the resulting CakePlanner-x86_64.AppImage into this deployment folder:

cp ../../CakePlanner-x86_64.AppImage .

2. Configure Environment

Create a .env file from the example:

cp CakePlanner.env.example CakePlanner.env
nano CakePlanner.env

Adjust SMTP settings and other variables as needed.

3. Start Services

Run Docker Compose to build and start the containers:

docker-compose up -d --build

4. Verify

Notes