Docker Radicale Image
Go to file
2021-05-08 10:34:44 +02:00
.github automated releases 2021-05-05 12:27:48 +02:00
.gitignore init 2021-03-17 00:13:50 +01:00
CHANGELOG.md chagelog 2021-05-08 10:34:44 +02:00
config init 2021-03-17 00:13:50 +01:00
docker-compose.yml pinn major version 2021-05-05 12:27:56 +02:00
Dockerfile expose port 2021-05-08 10:27:10 +02:00
entrypoint.sh use alpine 2021-03-17 00:49:27 +01:00
LICENSE badge & license 2021-03-17 01:02:49 +01:00
README.md automated releases 2021-05-05 12:27:48 +02:00

Docker Radicale

This is a small docker image for Radicale and easy deployment. Bcrypt authentication inclusive.

docker pulls docker size

Installation

# .env
USER=foo
PASSWORD=secret
# docker-compose.yml
version: '3.7'

services:
  app:
    image: cupcakearmy/radicale:1
    restart: unless-stopped
    env_file: .env
    volumes:
      - ./data:/data
    ports:
      - 80:5232

The env file is not strictly required, but will generate a user with its bcrypt password if missing.

macOS Setup

Without SSL/TLS the native client seems to have problems, once SSL is enabled it works like a charm.

macOS Setup

The same setup works for Calendar and on iOS.

Traefik

An example for traefik (v1) can found below.

version: '3.7'

networks:
  traefik:
    external: true

services:
  app:
    image: cupcakearmy/radicale
    env_file: .env
    volumes:
      - ./data:/data
    networks:
      - traefik
    labels:
      - traefik.enable=true
      - traefik.backend=radicale
      - traefik.frontend.rule=Host:radicale.example.org
      - traefik.docker.network=traefik
      - traefik.port=5232

Customize

Config

You can overwrite the config by simply mounting it into /etc/radicale/config.

User Auth

The default script only creates a default user with the given USER and PASSWORD credentials. For multiple users you need to create the files manually. In the default config this is set to /data/users.

You can add users with htpasswd -bB -c /data/users user pass. And then mount that file to /data/users or whatever you have set in the Radicale config file filesystem_folder, more here.