Skip to content
🧮 Is Lifetime with ZapX Pass worth it? Work it out for your own servers in 30 seconds. Open the Lifetime calculator →

Set Up Radicale on a Linux Server – Your Own Server for Calendars and Contacts

Set up Radicale as a One-Click App or with Docker on your VPS, then sync calendars, tasks, and contacts with your smartphone and Thunderbird.

2 December 202612 min read14 Views0 helpful

Introduction

Radicale is a lightweight server for CalDAV (calendars and tasks) and CardDAV (contacts). Your appointments, to-dos, and address books are stored on your own server instead of with Google, Apple, or Microsoft, and all your devices sync with it: Android smartphones, iPhones, Macs, Thunderbird, and many other apps. Radicale is open source (GPL-3.0), written in Python, and stores all entries as simple files. You don't need a database.

In this guide, we'll show you two ways to set it up: the easy way, as a One-Click App, which runs Radicale with password protection and HTTPS at your own address, and a manual installation with Docker Compose. Afterward, you'll set up calendars and contacts on your smartphone (Android with DAVx⁵, iPhone) and in Thunderbird.

When Radicale on a VPS makes sense

Radicale is a good choice if:

  • You want to sync calendars and contacts without a cloud provider, for example between an Android smartphone, laptop, and Thunderbird.
  • You only need calendars and contacts, without file storage, office software, and so on. Radicale uses very little memory.
  • You use Android and Apple devices together. CalDAV and CardDAV are open standards supported by both ecosystems.
  • You want to back up your data easily. Every appointment and contact is a file in iCalendar or vCard format.

Radicale is less suitable if you mainly want to view and edit appointments in a browser. Radicale's web interface lets you manage calendars and address books, but it doesn't have a calendar view. If your team also needs file storage, a web calendar, and one-click sharing, Nextcloud is the more comprehensive solution.

Easy option: Radicale as a One-Click App

The quickest way to get Radicale running is through your VPS's One-Click Apps. With a domain, the app is accessible directly over HTTPS. You don't need a reverse proxy, certificate, or firewall rules.

Requirements

  • A Linux VPS (Debian or Ubuntu) with One-Click Apps set up. See Set Up One-Click Apps for instructions.
  • Radicale needs very little computing power: 1 vCore and around 128 MB of memory are enough; 256 MB is recommended.

Install

  1. Open your VPS in the ZapX dashboard and switch to the One-Click Apps tab.
  2. Search the App catalog for Radicale and click Install app.
  3. Use a custom subdomain or zap.cloud is already selected. Leave this option enabled and enter a name, for example calendar. Smartphones and calendar apps often only send passwords over HTTPS, so you should always run Radicale with a domain.
  4. Set your login details under App configuration. Both fields are required:
FieldDescription
RADICALE_USERUsername for the web interface and all devices, for example max
RADICALE_PASSWORDPassword for this user
  1. Click Queue installation. After about a minute, Radicale will show as online on the app card. With zap.cloud, ZapX adds your server number to the name; the finished address is shown in the form.
Tip: Use a username without special characters

Choose a simple username like max instead of an email address. Some devices, especially iPhones, can alter the @ in an email address when sending it, which can prevent you from signing in.

First login and first calendar

Open the app's Access link. Radicale will take you to the web interface at /.web/. Sign in there with the username and password from the installation form, then click Next. The web interface is in English, so this guide uses the English labels.

After you log in, your collection list will be empty. Here's how to create a calendar or address book:

  1. Click the green plus button in the bottom-right corner (Create a new addressbook or calendar).
  2. Under Type, choose what you want to create: Address book for contacts, Calendar for appointments, or a combination such as Calendar and tasks for appointments and tasks.
  3. Enter a Title, for example Personal. Radicale fills in the HREF field with a random ID, which you can leave as is. Description and Color are optional.
  4. Click Create.

Each calendar and address book will then appear as a card with its path, for example /max/92e047da-…/. Click the icon next to the path to copy it. Use the blue arrow button (Upload an addressbook or calendar) to upload existing .ics or .vcf files.

Info: There is exactly one user

The One-Click App creates exactly one user from RADICALE_USER and RADICALE_PASSWORD each time it starts. Each user can only see their own calendars and address books. If you need multiple accounts, for example one for each family member, use the manual installation below.

Change your password

Your username and password are listed in the app settings (gear icon) under App environment. Enter a new password there and click Save. ZapX will restart Radicale automatically, and the new password will take effect after a few seconds. Your calendars and contacts are kept, but your old password will no longer work. Sign in to all your devices with the new password.

Updates and backups

The app installs the stable version of Radicale (currently 3.9.2). New stable versions are released as app updates. To check whether a new version is available, go to the app settings (gear icon), open App update, and click Check for updates. Install a new version by clicking Apply update. If the app is up to date, there isn't a newer version in the app catalog.

Your calendars and contacts are stored in the app volume at /var/lib/radicale/collections. They are kept when the app restarts and during updates. Make an additional backup yourself: a backup of your VPS from the Backups tab will include everything. You can also download individual calendars and address books at any time as files; see “Export calendars and contacts” below.

Manual installation

The rest of this guide covers a manual installation of Radicale with Docker Compose on your VPS, for example, if you don't use One-Click Apps on your server or need multiple users. This is based on the official Radicale documentation.

Requirements

  • A Linux VPS running Debian or Ubuntu, with SSH access. See First SSH connection.
  • Docker and Docker Compose. See Install Docker. Verify the installation with docker --version and docker compose version.
  • For HTTPS: a domain or subdomain whose A record points to your VPS's IP address (e.g. calendar.example.com).

Radicale stores all entries as files and needs very few resources. Storage use only grows with the number of your appointments and contacts:

MinimumRecommended
CPU1 vCore1 vCore
RAM128 MB256 MB
Storage1 GB5 GB

Set up the firewall

Radicale listens on port 5232 inside the container. Don't open this port, since Radicale should only be accessible through a reverse proxy with HTTPS. With ufw, allow only SSH and the ports needed for the reverse proxy:

Code
sudo ufw allow OpenSSH
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw enable
sudo ufw status

In the Compose file below, port 5232 is bound only to 127.0.0.1. This means only the reverse proxy on the same server can reach it, even if Docker sets its own firewall rules.

Create a user and write the configuration

Create a folder for Radicale with subfolders for configuration and data:

Code
mkdir -p ~/radicale/config ~/radicale/data
cd ~/radicale

Users are stored in an htpasswd file. The required tool is already included in the Radicale image. The following command prompts you for the password twice and adds user max with an encrypted password (bcrypt) to the config/users file:

Code
docker run --rm -it --entrypoint htpasswd ghcr.io/kozea/radicale:stable -nB max >> config/users

Repeat the command for each additional user, using a different name each time. To change a user's password, delete their line from config/users and run the command again. Radicale rereads the file at every login, so no restart is needed. Then create the config/config file, for example with nano config/config:

Code
[server]
hosts = 0.0.0.0:5232, [::]:5232

[auth]
type = htpasswd
htpasswd_filename = /etc/radicale/users
htpasswd_encryption = autodetect

[storage]
filesystem_folder = /var/lib/radicale/collections

[rights]
type = owner_only
  • [auth] enables login using the users file. Without this section, Radicale accepts any password.
  • [rights] with owner_only ensures that each user can only see their own calendars and address books.
  • [storage] sets where data is stored inside the container. On the server, it will be in the data folder.

Radicale runs in the container as a user with ID 1000. Give it access to the data folder:

Code
sudo chown -R 1000:1000 data

Install with Docker Compose

Create a compose.yaml file in the ~/radicale folder:

Code
services:
  radicale:
    image: ghcr.io/kozea/radicale:stable
    container_name: radicale
    restart: unless-stopped
    ports:
      - "127.0.0.1:5232:5232"
    volumes:
      - ./config:/etc/radicale:ro
      - ./data:/var/lib/radicale

Important lines:

  • image uses the official image with the stable tag. It always points to the latest stable version. For Radicale, the latest tag usually points to a daily test version (Nightly) and isn't intended for production use.
  • ports binds Radicale only to 127.0.0.1. The port isn't accessible externally.
  • ./config is mounted read-only at /etc/radicale. Radicale looks there for its configuration and user file.
  • ./data contains all calendars and contacts.

Start Radicale:

Code
docker compose up -d
docker compose logs -f

After a few seconds, Radicale server ready will appear in the logs. Press Ctrl+C to exit the log view; the container will keep running.

First access

Before setting up the reverse proxy, you can test Radicale using an SSH tunnel. Run this command on your own computer:

Code
ssh -L 5232:127.0.0.1:5232 root@SERVER_IP

Then open http://localhost:5232 in your browser. Radicale will redirect you to /.web/, where you can sign in with one of the users you created and set up calendars and address books as described above.

Access over HTTPS with a reverse proxy

You need HTTPS for smartphones and calendar apps. Set up nginx as a reverse proxy as described in Set Up a Reverse Proxy with nginx, and get a certificate as explained in SSL Certificate with Let's Encrypt. The server block for Radicale looks like this:

Code
server {
    listen 80;
    server_name kalender.example.com;

    client_max_body_size 100m;

    location / {
        proxy_pass        http://127.0.0.1:5232;
        proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header  X-Forwarded-Host $host;
        proxy_set_header  X-Forwarded-Port $server_port;
        proxy_set_header  X-Forwarded-Proto $scheme;
        proxy_set_header  Host $http_host;
        proxy_pass_header Authorization;
    }
}
  • client_max_body_size allows larger uploads. Without this line, nginx allows only 1 MB, so a large calendar import through the web interface would fail.
  • proxy_pass_header Authorization forwards the login credentials to Radicale.
  • If Radicale runs on its own subdomain, as shown here, you don't need an X-Script-Name header. This is only needed for a subpath such as example.com/radicale/; examples are in the official documentation.

Then run sudo nginx -t and sudo systemctl reload nginx, and get the certificate with sudo certbot --nginx -d kalender.example.com. Radicale is now available at https://kalender.example.com.

Back up your data

All calendars and contacts are stored as files in the ~/radicale/data folder, and users are stored in ~/radicale/config. To back them up, archive both folders:

Code
cd ~/radicale
tar czf ~/radicale-backup-$(date +%F).tar.gz config data

Copy the archive to another computer or storage location. To restore it, stop Radicale with docker compose down, extract the archive in the ~/radicale folder, and start Radicale again with docker compose up -d.

Update Radicale

To get the latest stable version with the stable tag, run:

Code
cd ~/radicale
docker compose pull
docker compose up -d
docker image prune -f

Make a backup first. Information about new versions is available in the Radicale release notes.

Sync calendars and contacts

Now connect your devices. Most apps can find your calendars and address books automatically when you enter the server address, username, and password.

Which address to enter

WhatAddress
Server (for DAVx⁵, iPhone, Thunderbird)https://calendar.example.com
A specific calendar or address bookhttps://calendar.example.com/max/ID/

For the One-Click App, use the address from the Access link instead of calendar.example.com, but remove /.web/ from the end. Radicale's web interface displays the full address of each calendar or address book. You only need it for apps that don't search automatically.

Android with DAVx⁵

Android doesn't support CalDAV and CardDAV out of the box. The free, open-source app DAVx⁵ syncs your Radicale calendars and contacts with your smartphone's regular calendar and contacts apps.

  1. Install DAVx⁵ from Google Play or F-Droid and open the app.
  2. Tap the plus sign and select Log in with URL and username.
  3. Enter your Radicale server address as the Base URL, along with your username and password, then tap Log in.
  4. Confirm the account name by tapping Create account.
  5. In the CardDAV and CalDAV tabs, check the address books and calendars you want to sync to your smartphone.

Your appointments will then appear in your calendar app, and your contacts in your contacts app. You can also create new calendars directly in DAVx⁵.

iPhone and iPad

iOS supports CalDAV and CardDAV directly. Set up one account for calendars and a second for contacts.

  1. Open Settings and go to Apps > Calendar > Calendar Accounts > Add Account. On older iOS versions, you can find accounts directly under Calendar.
  2. Select Other, then Add CalDAV Account.
  3. Enter your Radicale server address without https:// as the Server, for example calendar.example.com, along with your username and password. Tap Next.
  4. To add contacts, follow the same steps under Apps > Contacts and select Add CardDAV Account.
Tip: Set it up faster with the profile in the web interface

Open Radicale's web interface in Safari on your iPhone or iPad and sign in. The blue button with the smartphone icon (Mobileconfig) downloads a configuration profile that sets up both calendar and contacts accounts at once. Install it under Profile Downloaded in Settings, and enter your password when prompted. The profile doesn't contain your password.

On a Mac, go to System Settings > Internet Accounts > Add Account > Add Other Account > CalDAV Account or CardDAV Account.

Thunderbird

Thunderbird can add calendars and address books using CalDAV and CardDAV without an add-on.

  • Calendars: Switch to the calendar view, click New Calendar on the left, and select On the Network. Enter your username and your Radicale server address as the Location, then click Find Calendars. After you enter your password, Thunderbird will show your calendars. Select them and click Subscribe.
  • Contacts: Open the address book, click the arrow next to New Address Book, and select Add CardDAV Address Book. Enter your username and address, then click Continue. Thunderbird will list your address books.

Export calendars and contacts

You can retrieve a complete calendar or address book from Radicale using its address. Open a calendar's address in your browser and sign in to download all its appointments as a .ics file. For an address book, you'll download all contacts as a .vcf file. You can import these files into any other calendar or contacts app. Conversely, Radicale's web interface accepts existing .ics and .vcf files through Upload, for example, an export from Google Calendar.

What Radicale can't do

  • No calendar view in the browser. You can only view and edit appointments in your apps and programs.
  • No one-click team calendar. Each user can only see their own collections. To share calendars between multiple users, you need to configure Radicale's permissions in the manual installation.
  • No email invitations out of the box. Radicale only sends invitations to attendees if you configure email sending. The One-Click App doesn't do this.

Conclusion

Radicale gives you your own lightweight server for calendars, tasks, and contacts that works with Android, iPhone, Mac, and Thunderbird alike. To make sure your appointments and contacts are never lost, the guide Set Up Kopia on a Linux Server shows you how to set up encrypted backups of your server.

If you have any other questions or need help, our support team is available every day! 🙂

Free tools

Related tools for servers and developers

View all

FAQ

Frequently asked questions

The One-Click App is the quickest option: enter a username and password, and Radicale will be available over HTTPS at your own address within minutes, without a reverse proxy or certificate. It supports exactly one user. For multiple users, custom configuration, or more control over how Radicale runs alongside other services, use the manual Docker Compose installation.
Yes. Radicale uses the open CalDAV and CardDAV standards. On Android, connect to the server with DAVx⁵. On iPhone, iPad, and Mac, add CalDAV and CardDAV accounts in the settings. All your devices will then show the same appointments and contacts.
In Google Calendar, export your calendars as .ics files under Settings > Import & export. Create a calendar in Radicale's web interface or upload the .ics file there. To transfer contacts, export them from Google Contacts as vCard (.vcf) and upload the file to an address book.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.