### Starting Plane Services with Docker Compose Source: https://github.com/easypanel-io/compose/blob/main/plane/code/README.md This snippet demonstrates how to start the Plane services using the `setup.sh` script in a Docker Compose environment. Users select option `2` from the interactive menu to initiate the service startup, which involves downloading and running Docker images. ```bash Select a Action you want to perform: 1) Install (x86_64) 2) Start 3) Stop 4) Restart 5) Upgrade 6) View Logs 7) Backup Data 8) Exit Action [2]: 2 ``` -------------------------------- ### Interactive Docker Compose Setup Menu - Bash Source: https://github.com/easypanel-io/compose/blob/main/plane/code/README.md This code block simulates the interactive menu presented by the './setup.sh' script when running a Docker Compose-based installation. Users are prompted to select an action, with '1' for initial installation to download configuration files and '8' to exit the script. ```bash Select an Action you want to perform: 1) Install (x86_64) 2) Start 3) Stop 4) Restart 5) Upgrade 6) View Logs 7) Backup Data 8) Exit Action [2]: 1 ``` -------------------------------- ### Viewing API Service Logs (Bash Output) Source: https://github.com/easypanel-io/compose/blob/main/plane/code/README.md This snippet displays an example of the log output for the 'API' service after it has been selected. It shows various stages of the service startup, including database connectivity, migration checks, environment variable loading, bucket creation, and Gunicorn/Uvicorn server initialization. Users can exit this view using CTRL+C. ```bash api-1 | Waiting for database... api-1 | Database available! api-1 | Waiting for database migrations to complete... api-1 | Waiting for database migrations to complete... api-1 | Waiting for database migrations to complete... api-1 | Waiting for database migrations to complete... api-1 | Waiting for database migrations to complete... api-1 | Waiting for database migrations to complete... api-1 | Waiting for database migrations to complete... api-1 | No migrations Pending. Starting processes ... api-1 | Instance registered api-1 | ENABLE_SIGNUP loaded with value from environment variable. api-1 | ENABLE_EMAIL_PASSWORD loaded with value from environment variable. api-1 | ENABLE_MAGIC_LINK_LOGIN loaded with value from environment variable. api-1 | GOOGLE_CLIENT_ID loaded with value from environment variable. api-1 | GITHUB_CLIENT_ID loaded with value from environment variable. api-1 | GITHUB_CLIENT_SECRET loaded with value from environment variable. api-1 | EMAIL_HOST loaded with value from environment variable. api-1 | EMAIL_HOST_USER loaded with value from environment variable. api-1 | EMAIL_HOST_PASSWORD loaded with value from environment variable. api-1 | EMAIL_PORT loaded with value from environment variable. api-1 | EMAIL_FROM loaded with value from environment variable. api-1 | EMAIL_USE_TLS loaded with value from environment variable. api-1 | EMAIL_USE_SSL loaded with value from environment variable. api-1 | OPENAI_API_KEY loaded with value from environment variable. api-1 | GPT_ENGINE loaded with value from environment variable. api-1 | UNSPLASH_ACCESS_KEY loaded with value from environment variable. api-1 | Checking bucket... api-1 | Bucket 'uploads' does not exist. Creating bucket... api-1 | Bucket 'uploads' created successfully. api-1 | Public read access policy set for bucket 'uploads'. api-1 | Cache Cleared api-1 | [2024-05-02 03:56:01 +0000] [1] [INFO] Starting gunicorn 21.2.0 api-1 | [2024-05-02 03:56:01 +0000] [1] [INFO] Listening at: http://0.0.0.0:8000 (1) api-1 | [2024-05-02 03:56:01 +0000] [1] [INFO] Using worker: uvicorn.workers.UvicornWorker api-1 | [2024-05-02 03:56:01 +0000] [25] [INFO] Booting worker with pid: 25 api-1 | [2024-05-02 03:56:03 +0000] [25] [INFO] Started server process [25] api-1 | [2024-05-02 03:56:03 +0000] [25] [INFO] Waiting for application startup. api-1 | [2024-05-02 03:56:03 +0000] [25] [INFO] ASGI 'lifespan' protocol appears unsupported. api-1 | [2024-05-02 03:56:03 +0000] [25] [INFO] Application startup complete. ``` -------------------------------- ### Downloading and Permitting Docker Compose Setup Script - Bash Source: https://github.com/easypanel-io/compose/blob/main/plane/code/README.md This snippet downloads the 'setup.sh' script specifically designed for Docker Compose-based Plane installations from the official GitHub releases and then makes it executable. This script is crucial for managing the Plane services via Docker Compose. ```bash curl -fsSL -o setup.sh https://github.com/makeplane/plane/releases/latest/download/setup.sh chmod +x setup.sh ``` -------------------------------- ### Interactive Docker Swarm Setup Menu - Bash Source: https://github.com/easypanel-io/compose/blob/main/plane/code/README.md This code block simulates the interactive menu presented by the './setup.sh' script when running a Docker Swarm-based installation. Users are prompted to select an action, with '1' for initial deployment to download configuration files and '7' to exit the script. ```bash Select an Action you want to perform: 1) Deploy Stack 2) Remove Stack 3) View Stack Status 4) Redeploy Stack 5) Upgrade 6) View Logs 7) Exit Action [3]: 1 ``` -------------------------------- ### Example Output of Plane-CE Data Restore Source: https://github.com/easypanel-io/compose/blob/main/plane/code/README.md Illustrates the expected console output upon successful execution of the `restore.sh` script. It shows the script identifying and restoring `pgdata`, `redisdata`, and `uploads` volumes from their respective `.tar.gz` files within the provided backup path. ```bash -------------------------------------------- ____ _ ///////// | _ \| | __ _ _ __ ___ ///////// | |_) | |/ _` | '_ \ / _ \ ///// ///// | __/| | (_| | | | | __/ ///// ///// |_| |_|\__,_|_|_| |_|\___| //// //// -------------------------------------------- Project management tool from the future -------------------------------------------- Found /opt/plane-selfhost/plane-app/backup/20240722-0914/pgdata.tar.gz .....Restoring plane-app_pgdata .....Successfully restored volume plane-app_pgdata from pgdata.tar.gz Found /opt/plane-selfhost/plane-app/backup/20240722-0914/redisdata.tar.gz .....Restoring plane-app_redisdata .....Successfully restored volume plane-app_redisdata from redisdata.tar.gz Found /opt/plane-selfhost/plane-app/backup/20240722-0914/uploads.tar.gz .....Restoring plane-app_uploads .....Successfully restored volume plane-app_uploads from uploads.tar.gz Restore completed successfully. ``` -------------------------------- ### Copying middleware.env.example to middleware.env for Dify Development Source: https://github.com/easypanel-io/compose/blob/main/dify/code/README.md This command creates the `middleware.env` file from its example, which is necessary for configuring middleware services when developing Dify. It ensures proper environment setup for databases and caches. ```Shell cp middleware.env.example middleware.env ``` -------------------------------- ### Downloading and Permitting Docker Swarm Setup Script - Bash Source: https://github.com/easypanel-io/compose/blob/main/plane/code/README.md This snippet downloads the 'swarm.sh' script specifically designed for Docker Swarm-based Plane installations from the official GitHub releases and then makes it executable. This script is used to manage Plane services within a Docker Swarm environment. ```bash curl -fsSL -o setup.sh https://github.com/makeplane/plane/releases/latest/download/swarm.sh chmod +x setup.sh ``` -------------------------------- ### Selecting Data Backup Action (Bash) Source: https://github.com/easypanel-io/compose/blob/main/plane/code/README.md This snippet illustrates the main menu presented by the ./setup.sh script, allowing users to choose various actions. Specifically, it shows the selection of option '7' to initiate the data backup process. This menu is the entry point for managing the Docker Compose application. ```bash Select a Action you want to perform: 1) Install (x86_64) 2) Start 3) Stop 4) Restart 5) Upgrade 6) View Logs 7) Backup Data 8) Exit Action [2]: 7 ``` -------------------------------- ### Installing Docker Engine on Cloud Server (AWS EC2) - Bash Source: https://github.com/easypanel-io/compose/blob/main/plane/code/README.md This command downloads and executes the official Docker installation script, setting up the Docker engine on a Linux-based cloud server like an AWS EC2 instance. It's a prerequisite for running Docker containers and is typically run with root privileges. ```bash curl -fsSL https://get.docker.com | sh - ``` -------------------------------- ### Installing Twenty CRM Systemd User Service Source: https://github.com/easypanel-io/compose/blob/main/twenty/code/podman/README.md This shell script installs and enables the `twentycrm.service` systemd unit file under the current user. It also starts the service, assuming Twenty CRM is not already running. Users should ensure the `twentycrm.service` file is correctly configured before running this script. ```Shell ./install-systemd-user-service ``` -------------------------------- ### Downloading Plane-CE Restore Script (Bash) Source: https://github.com/easypanel-io/compose/blob/main/plane/code/README.md Downloads the `restore.sh` script from the official GitHub repository and makes it executable. This script is used for restoring previously backed-up Plane-CE data volumes. It's recommended to download it in the same directory as `setup.sh`. ```bash curl -fsSL -o restore.sh https://raw.githubusercontent.com/makeplane/plane/master/deploy/selfhost/restore.sh chmod +x restore.sh ``` -------------------------------- ### Selecting Service for Log Viewing (Bash) Source: https://github.com/easypanel-io/compose/blob/main/plane/code/README.md This snippet shows the interactive menu presented to the user for selecting a specific service to view its logs. The user enters a number corresponding to the desired service, such as '3' for 'API', to proceed. This is a prerequisite step before displaying the actual service logs. ```bash Select a Service you want to view the logs for: 1) Web 2) Space 3) API 4) Worker 5) Beat-Worker 6) Migrator 7) Proxy 8) Redis 9) Postgres 10) Minio 11) RabbitMQ 0) Back to Main Menu Service: 3 ``` -------------------------------- ### Starting Dify Services with Docker Compose Source: https://github.com/easypanel-io/compose/blob/main/dify/code/README.md This command starts all services defined in the `docker-compose.yaml` file within the current `docker` directory. It is used to deploy Dify and its associated components. ```Shell docker compose up ``` -------------------------------- ### Creating and Navigating Plane Self-Host Directory - Bash Source: https://github.com/easypanel-io/compose/blob/main/plane/code/README.md These commands create a new directory named 'plane-selfhost' in the current working directory and then change the current working directory into it. This directory will serve as the base for downloading and managing Plane's self-hosting configuration files. ```bash mkdir plane-selfhost cd plane-selfhost ``` -------------------------------- ### Copying .env.example to .env for Dify Docker Deployment Source: https://github.com/easypanel-io/compose/blob/main/dify/code/README.md This command copies the example environment file `.env.example` to `.env`, which is essential for configuring Dify's Docker Compose deployment. The `.env` file holds persistent environment variables for services. ```Shell cp .env.example .env ``` -------------------------------- ### Restarting Plane Services with Docker Compose Source: https://github.com/easypanel-io/compose/blob/main/plane/code/README.md This snippet details how to restart Plane services using the `setup.sh` script in a Docker Compose setup. Selecting option `4` from the menu allows for a quick restart, useful for applying `plane.env` changes without a full stop or addressing abnormalities. ```bash Select a Action you want to perform: 1) Install (x86_64) 2) Start 3) Stop 4) Restart 5) Upgrade 6) View Logs 7) Backup Data 8) Exit Action [2]: 4 ``` -------------------------------- ### Executing Docker Compose for Initial Certbot Setup Source: https://github.com/easypanel-io/compose/blob/main/dify/code/certbot/README.md Commands to prune Docker networks and launch the Certbot service using Docker Compose with the 'certbot' profile, forcing recreation to ensure a clean setup for certificate acquisition. ```shell docker network prune docker compose --profile certbot up --force-recreate -d ``` -------------------------------- ### Downloading Plane-CE Migration Script (Bash) Source: https://github.com/easypanel-io/compose/blob/main/plane/code/README.md Downloads the `migration-0.13-0.14.sh` script, which is a one-time utility for migrating Docker volume data when upgrading Plane-CE from v0.13.2 to v0.14.x. The script is made executable after download. ```bash curl -fsSL -o migrate.sh https://raw.githubusercontent.com/makeplane/plane/master/deploy/selfhost/migration-0.13-0.14.sh chmod +x migrate.sh ``` -------------------------------- ### Upgrading Plane Version with Docker Compose Source: https://github.com/easypanel-io/compose/blob/main/plane/code/README.md This snippet explains how to upgrade the Plane application using the `setup.sh` script in a Docker Compose setup. Selecting option `5` stops current services, downloads the latest `docker-compose.yaml` and `plane.env`, and then requires manual validation of `plane.env` changes before restarting. ```bash Select a Action you want to perform: 1) Install (x86_64) 2) Start 3) Stop 4) Restart 5) Upgrade 6) View Logs 7) Backup Data 8) Exit Action [2]: 5 ``` -------------------------------- ### Inputting Volume Prefixes for Plane-CE Migration (Bash) Source: https://github.com/easypanel-io/compose/blob/main/plane/code/README.md Demonstrates how to provide the source and destination volume prefixes to the `migrate.sh` script when prompted. This step is crucial for the script to correctly identify and transfer data between the old (v0.13.2) and new (v0.14.x) Docker volumes. ```bash Provide the Source Volume Prefix : v0132 Provide the Destination Volume Prefix : plane-app ``` -------------------------------- ### Viewing Plane Logs with Docker Compose Source: https://github.com/easypanel-io/compose/blob/main/plane/code/README.md This snippet demonstrates how to access Plane service logs using the `setup.sh` script in a Docker Compose deployment. Users select option `6` from the main menu to view real-time output from API, Worker, or other containers for debugging and monitoring. ```bash Select a Action you want to perform: 1) Install (x86_64) 2) Start 3) Stop 4) Restart 5) Upgrade 6) View Logs 7) Backup Data 8) Exit Action [2]: 6 ``` -------------------------------- ### Configuring Environment Variables for Certbot Initial Setup Source: https://github.com/easypanel-io/compose/blob/main/dify/code/certbot/README.md Sets environment variables required for Certbot to obtain SSL certificates, including Nginx certificate filenames, enabling the Certbot challenge, and specifying the domain and email for certificate registration. ```properties NGINX_SSL_CERT_FILENAME=fullchain.pem NGINX_SSL_CERT_KEY_FILENAME=privkey.pem NGINX_ENABLE_CERTBOT_CHALLENGE=true CERTBOT_DOMAIN=your_domain.com CERTBOT_EMAIL=example@your_domain.com ``` -------------------------------- ### Starting Twenty CRM with Podman Compose Source: https://github.com/easypanel-io/compose/blob/main/twenty/code/podman/README.md This command starts the Twenty CRM application in detached mode using `podman-compose`. It reads the `podman-compose.yml` file and the `.env` file to configure and run the services. Prerequisites include setting `POSTGRES_PASSWORD`, `SERVER_URL`, and `APP_SECRET` in the `.env` file. ```Shell podman-compose up -d ``` -------------------------------- ### Upgrading Plane Version with Docker Swarm Source: https://github.com/easypanel-io/compose/blob/main/plane/code/README.md This snippet describes how to upgrade the Plane application using the `setup.sh` script in a Docker Swarm environment. Choosing option `5` stops services, downloads the latest configuration files, and necessitates validating `plane.env` changes before redeploying the stack. ```bash 1) Deploy Stack 2) Remove Stack 3) View Stack Status 4) Redeploy Stack 5) Upgrade 6) View Logs 7) Exit Action [3]: 5 ``` -------------------------------- ### Confirming Data Backup Completion (Bash Output) Source: https://github.com/easypanel-io/compose/blob/main/plane/code/README.md This snippet shows the console output confirming the successful completion of the data backup operation. It lists the Docker volumes being backed up (Postgres, Redis, uploads) and provides the exact path where the backup files are stored, including a timestamped directory. ```bash Backing Up plane-app_pgdata Backing Up plane-app_redisdata Backing Up plane-app_uploads Backup completed successfully. Backup files are stored in /....../plane-app/backup/20240502-1120 ``` -------------------------------- ### Starting Dify Middleware Services with Docker Compose Source: https://github.com/easypanel-io/compose/blob/main/dify/code/README.md This command starts essential middleware services for Dify development using `docker-compose.middleware.yaml`. It specifies the `weaviate` profile and runs services in detached mode, allowing for background execution. ```Shell docker compose -f docker-compose.middleware.yaml --profile weaviate -p dify up -d ``` -------------------------------- ### Stopping Plane Services with Docker Compose Source: https://github.com/easypanel-io/compose/blob/main/plane/code/README.md This snippet shows how to stop the Plane services using the `setup.sh` script when deployed with Docker Compose. It requires selecting option `3` from the script's menu, which is recommended before making changes to `plane.env` variables. ```bash Select a Action you want to perform: 1) Install (x86_64) 2) Start 3) Stop 4) Restart 5) Upgrade 6) View Logs 7) Backup Data 8) Exit Action [2]: 3 ``` -------------------------------- ### Viewing Plane Logs with Docker Swarm Source: https://github.com/easypanel-io/compose/blob/main/plane/code/README.md This snippet shows how to view Plane service logs using the `setup.sh` script in a Docker Swarm environment. Selecting option `6` from the Swarm-specific menu provides access to container logs, useful for diagnosing issues within the API, Worker, or other components. ```bash 1) Deploy Stack 2) Remove Stack 3) View Stack Status 4) Redeploy Stack 5) Upgrade 6) View Logs 7) Exit Action [3]: 6 ``` -------------------------------- ### Executing Plane-CE Migration Script and Listing Docker Volumes (Bash) Source: https://github.com/easypanel-io/compose/blob/main/plane/code/README.md Initiates the data migration process for Plane-CE from v0.13.2 to v0.14.x by running `migrate.sh`. The script prompts the user for source and destination volume prefixes. It also advises running `docker volume ls -q | grep -i "_pgdata"`, `docker volume ls -q | grep -i "_uploads"`, and `docker volume ls -q | grep -i "_redisdata"` in a separate terminal to identify existing Docker volume names for migration. ```bash ****************************************************************** This script is solely for the migration purpose only. This is a 1 time migration of volume data from v0.13.2 => v0.14.x Assumption: 1. Postgres data volume name ends with _pgdata 2. Minio data volume name ends with _uploads 3. Redis data volume name ends with _redisdata Any changes to this script can break the migration. Before you proceed, make sure you run the below command to know the docker volumes docker volume ls -q | grep -i "_pgdata" docker volume ls -q | grep -i "_uploads" docker volume ls -q | grep -i "_redisdata" ******************************************************* Given below list of REDIS volumes, identify the prefix of source and destination volumes leaving "_redisdata" --------------------- plane-app_redisdata v0132_redisdata Provide the Source Volume Prefix : ``` -------------------------------- ### Stopping Twenty CRM with Podman Compose Source: https://github.com/easypanel-io/compose/blob/main/twenty/code/podman/README.md This command stops all services defined in the `podman-compose.yml` file that were previously started by `podman-compose up`. It is used to gracefully shut down the Twenty CRM application and is often a prerequisite before installing a systemd service. ```Shell podman-compose down ``` -------------------------------- ### Redeploying Plane Stack with Docker Swarm Source: https://github.com/easypanel-io/compose/blob/main/plane/code/README.md This snippet shows how to redeploy the Plane stack using the `setup.sh` script in a Docker Swarm environment. Users choose option `4` from the Swarm menu to redeploy services, which is useful for applying `plane.env` changes or resolving service issues. ```bash 1) Deploy Stack 2) Remove Stack 3) View Stack Status 4) Redeploy Stack 5) Upgrade 6) View Logs 7) Exit Action [3]: 4 ``` -------------------------------- ### Executing Plane-CE Data Restore (Bash) Source: https://github.com/easypanel-io/compose/blob/main/plane/code/README.md Executes the `restore.sh` script to restore Plane-CE data from a specified backup folder. The script expects a path to a directory containing `*.tar.gz` backup files for PostgreSQL, Redis, and uploads volumes. Successful restoration will output messages confirming each volume's recovery. ```bash ./restore.sh ``` -------------------------------- ### Removing Plane Stack with Docker Swarm Source: https://github.com/easypanel-io/compose/blob/main/plane/code/README.md This snippet illustrates how to remove the Plane stack when deployed with Docker Swarm using the `setup.sh` script. Users select option `2` from the Swarm-specific menu to stop and remove the services, often done before modifying `plane.env`. ```bash Select an Action you want to perform: 1) Deploy Stack 2) Remove Stack 3) View Stack Status 4) Redeploy Stack 5) Upgrade 6) View Logs 7) Exit Action [3]: 2 ``` -------------------------------- ### Configuring Systemd Service Working Directory and Environment File Source: https://github.com/easypanel-io/compose/blob/main/twenty/code/podman/README.md These lines are configuration variables within the `twentycrm.service` systemd unit file. `WorkingDirectory` specifies the directory where `podman-compose.yml` is located, and `EnvironmentFile` points to the `.env` file containing environment variables for the application. Both paths must be updated to reflect the actual installation location. ```INI WorkingDirectory=/opt/apps/twenty EnvironmentFile=/opt/apps/twenty/.env ``` -------------------------------- ### Initializing Terraform Deployment (Bash) Source: https://github.com/easypanel-io/compose/blob/main/twenty/code/k8s/README.md This snippet navigates into the `terraform` directory and initializes the Terraform working directory. This command downloads necessary provider plugins and modules, preparing the directory for subsequent Terraform operations like `plan` and `apply`. ```bash cd terraform terraform init ``` -------------------------------- ### Applying Certbot Options and Updating Certificates Source: https://github.com/easypanel-io/compose/blob/main/dify/code/certbot/README.md Recreates the Certbot container to apply new 'CERTBOT_OPTIONS' and then executes the certificate update script to obtain or renew certificates with the specified options. ```shell docker compose --profile certbot up -d --no-deps --force-recreate certbot docker compose exec -it certbot /bin/sh /update-cert.sh ``` -------------------------------- ### Configuring Certbot Options for Testing Source: https://github.com/easypanel-io/compose/blob/main/dify/code/certbot/README.md Sets the 'CERTBOT_OPTIONS' environment variable to include specific flags, such as '--dry-run', which is useful for testing certificate acquisition without making actual changes. ```properties CERTBOT_OPTIONS=--dry-run ``` -------------------------------- ### Launching Containers for Legacy SSL Configuration Source: https://github.com/easypanel-io/compose/blob/main/dify/code/certbot/README.md Launches Docker Compose services without the '--profile certbot' option, allowing the use of pre-existing SSL certificate files located in the 'nginx/ssl' directory for backward compatibility. ```shell docker compose up -d ``` -------------------------------- ### Cloning TwentyCRM Repository (Bash) Source: https://github.com/easypanel-io/compose/blob/main/twenty/code/k8s/README.md This snippet clones the TwentyCRM repository from GitHub and navigates into the `packages/twenty-docker/k8s` directory, which contains the Kubernetes manifests and Terraform files for deployment. ```bash git clone https://github.com/twentyhq/twenty.git cd twentycrm/packages/twenty-docker/k8s ``` -------------------------------- ### Planning Terraform Deployment (Bash) Source: https://github.com/easypanel-io/compose/blob/main/twenty/code/k8s/README.md This snippet generates an execution plan for the Terraform deployment. The plan shows what actions Terraform will take to achieve the desired state defined in the configuration files, without actually making any changes to the infrastructure. ```bash terraform plan ``` -------------------------------- ### Applying Terraform Deployment (Bash) Source: https://github.com/easypanel-io/compose/blob/main/twenty/code/k8s/README.md This snippet applies the planned Terraform deployment, creating or modifying infrastructure resources as defined in the configuration files. It prompts for confirmation before making any changes. ```bash terraform apply ``` -------------------------------- ### Enabling HTTPS in Nginx via Environment Variable Source: https://github.com/easypanel-io/compose/blob/main/dify/code/certbot/README.md Sets the 'NGINX_HTTPS_ENABLED' environment variable to 'true' to enable HTTPS access for the Nginx service after SSL certificates have been obtained. ```properties NGINX_HTTPS_ENABLED=true ``` -------------------------------- ### Updating Certificates via Certbot Container Source: https://github.com/easypanel-io/compose/blob/main/dify/code/certbot/README.md Executes the '/update-cert.sh' script inside the running 'certbot' container to finalize the certificate acquisition process after the initial container launch. ```shell docker compose exec -it certbot /bin/sh /update-cert.sh ``` -------------------------------- ### Applying Kubernetes Manifests (kubectl) Source: https://github.com/easypanel-io/compose/blob/main/twenty/code/k8s/README.md This snippet applies all Kubernetes manifest files (`.yaml`, `.json`) present in the current directory (`.`). This command creates or updates the Kubernetes resources (e.g., Deployments, Services, Ingresses) defined in these files. ```bash kubectl apply -f . ``` -------------------------------- ### Restarting Nginx Service with HTTPS Enabled Source: https://github.com/easypanel-io/compose/blob/main/dify/code/certbot/README.md Restarts the Nginx service using Docker Compose with the 'certbot' profile, ensuring that the newly enabled HTTPS configuration takes effect without affecting other services. ```shell docker compose --profile certbot up -d --no-deps --force-recreate nginx ``` -------------------------------- ### Renewing SSL Certificates and Reloading Nginx Source: https://github.com/easypanel-io/compose/blob/main/dify/code/certbot/README.md Executes the certificate update script within the Certbot container and then reloads the Nginx configuration to apply the renewed SSL certificates. ```shell docker compose exec -it certbot /bin/sh /update-cert.sh docker compose exec nginx nginx -s reload ``` -------------------------------- ### Reloading Nginx After Certbot Options Update Source: https://github.com/easypanel-io/compose/blob/main/dify/code/certbot/README.md Reloads the Nginx configuration to ensure that any changes made by the Certbot container, especially after applying new options, are reflected in the web server. ```shell docker compose exec nginx nginx -s reload ``` -------------------------------- ### Navigating to Kubernetes Manifests Directory (Bash) Source: https://github.com/easypanel-io/compose/blob/main/twenty/code/k8s/README.md This snippet changes the current directory from `terraform` back to the `k8s` directory, which contains the raw Kubernetes YAML manifests for direct deployment using `kubectl`. ```bash cd ../k8s ``` -------------------------------- ### Creating Kubernetes Server Secret (kubectl) Source: https://github.com/easypanel-io/compose/blob/main/twenty/code/k8s/README.md This snippet creates a generic Kubernetes secret named `tokens` in the `twentycrm` namespace. It stores sensitive server tokens (accessToken, loginToken, refreshToken, fileToken) as literals, which are required for the TwentyCRM application to function securely. ```bash kubectl create secret generic -n twentycrm tokens --from-literal accessToken=changeme --from-literal loginToken="changeme" --from-literal refreshToken="changeme" --from-literal fileToken="changeme" ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.