-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
123 lines (113 loc) · 2.75 KB
/
docker-compose.yml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
services:
authelia:
container_name: authelia
depends_on:
- postgres
- redis
env_file:
- .env
environment:
AUTHELIA_IDENTITY_VALIDATION_RESET_PASSWORD_JWT_SECRET_FILE: /run/secrets/jwt
# yamllint disable-line rule:line-length
# CHANGEME: Uncomment the following line if using notifier.smtp in authelia/configuration.yml
# AUTHELIA_NOTIFIER_SMTP_PASSWORD_FILE: /run/secrets/smtp
AUTHELIA_SESSION_SECRET_FILE: /run/secrets/session
AUTHELIA_STORAGE_POSTGRES_PASSWORD_FILE: /run/secrets/postgres-password
AUTHELIA_STORAGE_ENCRYPTION_KEY_FILE: /run/secrets/storage-encryption-key
# CHANGEME: Your timezone
TZ: America/New_York
secrets:
- jwt
- postgres-password
- session
- smtp
- storage-encryption-key
image: authelia/authelia:4.38.17
networks:
- authelia
- traefik
restart: always
volumes:
- ./authelia:/config:ro
- ./authelia/secrets:/etc/secrets
docker-socket-proxy:
container_name: docker-socket-proxy
environment:
CONTAINERS: 1
image: tecnativa/docker-socket-proxy:0.3.0
networks:
- docker-socket-proxy
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
handle-errors:
build:
context: ./handle-errors
networks:
- traefik
restart: always
postgres:
container_name: authelia-postgres
env_file:
- .env
environment:
POSTGRES_PASSWORD_FILE: /run/secrets/postgres-password
secrets:
- postgres-password
image: postgres:17.0-alpine
networks:
- authelia
restart: always
volumes:
- authelia-postgres-data:/var/lib/postgresql/data
redis:
container_name: authelia-redis
image: redis:7.4.1-alpine
restart: always
networks:
- authelia
traefik:
depends_on:
- authelia
- docker-socket-proxy
- handle-errors
env_file:
- .env
image: traefik:v3.2.1
networks:
- docker-socket-proxy
- traefik
ports:
- 80:80
- 443:443
restart: always
volumes:
- ./acme:/etc/acme
- ./dynamic-conf:/etc/traefik/dynamic-conf:ro
- ./traefik.yml:/etc/traefik/traefik.yml:ro
whoami:
image: traefik/whoami:v1.10
networks:
- traefik
secure-whoami:
image: traefik/whoami:v1.10
networks:
- traefik
secrets:
jwt:
file: authelia/secrets/jwt
postgres-password:
file: authelia/secrets/postgres-password
session:
file: authelia/secrets/session
smtp:
file: authelia/secrets/smtp
storage-encryption-key:
file: authelia/secrets/storage-encryption-key
networks:
authelia:
docker-socket-proxy:
traefik:
external: true
volumes:
authelia-postgres-data: