This commit is contained in:
Pim Kunis 2023-04-13 11:43:42 +02:00
parent 74a4de1615
commit 7c220a5501
4 changed files with 27 additions and 13 deletions

View file

@ -26,11 +26,11 @@
- {role: 'syncthing', tags: 'syncthing'} - {role: 'syncthing', tags: 'syncthing'}
- {role: 'kms', tags: 'kms'} - {role: 'kms', tags: 'kms'}
- {role: 'cyberchef', tags: 'cyberchef'} - {role: 'cyberchef', tags: 'cyberchef'}
# - {role: 'radicale', tags: 'radicale'} - {role: 'radicale', tags: 'radicale'}
- {role: 'mastodon', tags: 'mastodon'} - {role: 'mastodon', tags: 'mastodon'}
- {role: 'seafile', tags: 'seafile'} - {role: 'seafile', tags: 'seafile'}
- {role: 'jitsi', tags: 'jitsi'} - {role: 'jitsi', tags: 'jitsi'}
- {role: 'freshrss', tags: 'freshrss'} # - {role: 'freshrss', tags: 'freshrss'}
- {role: 'static', tags: 'static'} - {role: 'static', tags: 'static'}
- {role: 'inbucket', tags: 'inbucket'} - {role: 'inbucket', tags: 'inbucket'}
- {role: 'prometheus', tags: 'prometheus'} - {role: 'prometheus', tags: 'prometheus'}

View file

@ -9,7 +9,7 @@ stock = utf-8
[auth] [auth]
realm = Radicale - Password Required realm = Radicale - Password Required
type = htpasswd type = htpasswd
htpasswd_filename = /radicale/users htpasswd_filename = /config/users
htpasswd_encryption = md5 htpasswd_encryption = md5
[rights] [rights]

View file

@ -13,7 +13,7 @@
- name: Copy radicale.conf - name: Copy radicale.conf
copy: copy:
src: "{{ role_path }}/files/radicale.conf" src: "{{ role_path }}/files/radicale.conf"
dest: "{{ service_dir }}/config/radicale.conf" dest: "{{ service_dir }}/config/config"
- name: Copy users file - name: Copy users file
copy: copy:
src: "{{ role_path }}/files/users" src: "{{ role_path }}/files/users"

View file

@ -1,18 +1,28 @@
version: '3' version: '3.7'
networks:
traefik:
external: true
services: services:
radicale: radicale:
restart: always image: tomsquest/docker-radicale
image: mailu/radicale:1.9
container_name: radicale container_name: radicale
init: true
read_only: true
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
cap_add:
- SETUID
- SETGID
- CHOWN
- KILL
healthcheck:
test: curl -f http://127.0.0.1:5232 || exit 1
interval: 30s
retries: 3
restart: unless-stopped
volumes: volumes:
- {{ data_dir }}:/data - {{ data_dir }}:/data
- {{ service_dir }}/config:/radicale - {{ service_dir }}/config:/config:ro
command: radicale -S -C /radicale/radicale.conf
networks: networks:
- traefik - traefik
labels: labels:
@ -23,3 +33,7 @@ services:
- traefik.http.routers.radicale.tls.certresolver=letsencrypt - traefik.http.routers.radicale.tls.certresolver=letsencrypt
- traefik.http.routers.radicale.service=radicale - traefik.http.routers.radicale.service=radicale
- traefik.http.services.radicale.loadbalancer.server.port=5232 - traefik.http.services.radicale.loadbalancer.server.port=5232
networks:
traefik:
external: true