This repository was archived by the owner on Feb 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (71 loc) · 1.54 KB
/
docker-compose.yml
File metadata and controls
75 lines (71 loc) · 1.54 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
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
version: '3.7'
services:
backend:
restart: always
build:
context: .
dockerfile: backend.dockerfile
volumes:
- ./cache/keys:/app/keys
- ./cache/bundled-ca.pem:/app/keys/bundled-ca.pem
environment:
- DOMAIN
- FRONTENDPORT=443
- DBHOST
- DBUSER
- DBDATABASE
- DBPASS
- SMTPHOST
- SMTPPORT
- SMTPSECURE
- SMTPUSER
- SMTPPASS
- ISSUERNAME
- FIDO2FACTOR
- FIDO2TIMEOUT
- PWNEDPASSFAILSAFE
- PWHISTORY
- ARGON2TYPE
- ARGON2PARALLEL
- ARGON2TIME
- ARGON2MEMORY
- AUDITPAGELENGTH
- SYSLOGHEARTBEAT
- SMTPFROM
frontend.localhost:
depends_on:
- backend # Nginx fails if backend is not available
restart: always
build:
context: .
dockerfile: frontend+proxy.dockerfile
ports:
- mode: host
protocol: tcp
published: 80
target: 80
- mode: host
protocol: tcp
published: 443
target: 443
volumes:
- ./cache/certbot/conf:/etc/letsencrypt
- ./cache/certbot/www:/var/www/certbot
- ./cache/bundled-ca.pem:/etc/nginx/crypto/ca.pem
environment:
- DOMAIN
- TRUSTEDPROXYIP
certbot:
depends_on:
- frontend.localhost
build:
context: .
dockerfile: certbot.dockerfile
restart: always
volumes:
- ./cache/certbot/conf:/etc/letsencrypt
- ./cache/certbot/www:/var/www/certbot
environment:
- DOMAIN
- STAGING
- EMAIL