-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
30 lines (27 loc) · 947 Bytes
/
docker-compose.yml
File metadata and controls
30 lines (27 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
version: '3'
services:
nginx:
image: ghcr.io/servercontainers/nginx
restart: always
environment:
NGINX_CONFIG_radicale: server {server_name localhost; auth_basic "Restricted Area"; auth_basic_user_file /conf/auth.htpasswd; proxy_ssl_verify off; location / {proxy_pass http://radicale:8000/;} location /.web {auth_basic off; proxy_pass http://radicale:8000/.web;}}
# insecure! avoid in production!
HTACCESS_ACCOUNT_bob: pa55word
# use hashing like with `docker run -ti --rm alpine mkpasswd -m sha-512` - replace `$` with `$$` inside compose
HTACCESS_ACCOUNT_alice: $$5$$1JziPXzzTYrSrUiC$RMoWaw3k3UyCDKop4RuNSP/NvbJ4xh2fNLlihatRh70
ports:
- 80:80
- 443:443
networks:
- web-test
radicale:
build: .
image: ghcr.io/servercontainers/radicale
restart: always
volumes:
- './data:/data'
networks:
- web-test
networks:
web-test:
driver: bridge