-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.with-authelia.yml
More file actions
47 lines (43 loc) · 1.34 KB
/
Copy pathdocker-compose.with-authelia.yml
File metadata and controls
47 lines (43 loc) · 1.34 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Bundled Authelia setup for V-Mail
#
# Use this overlay when you want V-Mail to manage its own Authelia instance.
# Run with: docker compose -f docker-compose.yml -f docker-compose.with-authelia.yml up -d
#
# Before starting:
# 1. Copy config/authelia/configuration.yml.example to config/authelia/configuration.yml
# 2. Copy config/authelia/users.yml.example to config/authelia/users.yml
# 3. Edit both files - see comments inside for guidance
# 4. Generate secrets (see configuration.yml for instructions)
# 5. Set AUTHELIA_URL in your .env to your Authelia's public URL (for example, https://auth.example.com)
services:
# Authelia - authentication server
authelia:
image: authelia/authelia:latest
container_name: vmail-authelia
restart: unless-stopped
networks:
- vmail-internal
ports:
# Expose to host so your reverse proxy can reach it
- "9091:9091"
volumes:
- ./config/authelia:/config
environment:
- TZ=${TZ:-UTC}
depends_on:
- redis
# Redis - session storage for Authelia
redis:
image: redis:alpine
container_name: vmail-redis
restart: unless-stopped
networks:
- vmail-internal
volumes:
- vmail-redis-data:/data
environment:
- TZ=${TZ:-UTC}
# Override V-Mail to use header-based auth
vmail:
environment:
- VMAIL_AUTH_MODE=header