-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
140 lines (131 loc) · 4.91 KB
/
Copy pathdocker-compose.yml
File metadata and controls
140 lines (131 loc) · 4.91 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
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
services:
smtp-server:
image: ghcr.io/opengovmail/pingmailer-smtp:main
container_name: smtp-server-container
ports:
- "25:25"
- "587:587"
volumes:
- ./mail-infra/services/pingmailer-config/postfix/main.cf:/etc/postfix/main.cf:ro
- ./mail-infra/services/pingmailer-config/postfix/master.cf:/etc/postfix/master.cf:ro
- ./mail-infra/services/pingmailer-config/postfix/recipient_access:/etc/postfix/recipient_access:ro
- ./mail-infra/conf/pingmailer.yaml:/etc/postfix/pingmailer.yaml
- ./mail-infra/services/pingmailer-config/certbot/keys/etc:/etc/letsencrypt:ro
- postfix-spool:/var/spool/postfix
- postfix-logs:/var/log
networks:
- mail-network
depends_on:
- opendkim-server
- certbot-server
- raven-sasl-server
raven-sasl-server:
image: ghcr.io/opengovmail/raven-sasl:latest
container_name: raven-sasl
ports:
- "12345:12345"
volumes:
- ./mail-infra/services/pingmailer-config/raven/conf:/etc/raven:rw
- ./mail-infra/services/pingmailer-config/raven/certs:/certs:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./mail-infra/conf/oauth_client_email_authorization.json:/app/config/oauth_client_email_authorization.json:ro
environment:
- DB_FILE=/app/data/databases/shared.db
networks:
- mail-network
restart: unless-stopped
opendkim-server:
image: ghcr.io/opengovmail/pingmailer-dkim:main
container_name: opendkim-server
volumes:
- ./mail-infra/conf/pingmailer.yaml:/etc/opendkim/pingmailer.yaml
- ./mail-infra/services/pingmailer-config/opendkim/opendkim.conf:/etc/opendkim/opendkim.conf:ro
- ./mail-infra/services/pingmailer-config/opendkim/KeyTable:/etc/opendkim/KeyTable:ro
- ./mail-infra/services/pingmailer-config/opendkim/SigningTable:/etc/opendkim/SigningTable:ro
- ./mail-infra/services/pingmailer-config/opendkim/TrustedHosts:/etc/opendkim/TrustedHosts:ro
- dkim-keys:/etc/dkimkeys
networks:
- mail-network
cap_drop:
- all
security_opt:
- no-new-privileges:true
thunder-db-init:
image: ghcr.io/asgardeo/thunder:0.32.0
container_name: thunder-db-init
command: sh -c "cp -r /opt/thunder/repository/database/* /data/ && (cp -r /opt/thunder/consent/repository/database/* /consent-data/ 2>/dev/null || true)"
volumes:
- thunder-db:/data
- consent-db:/consent-data
restart: "no"
thunder-setup:
image: ghcr.io/asgardeo/thunder:0.32.0
container_name: thunder-setup
command: ./setup.sh
volumes:
- thunder-db:/opt/thunder/repository/database
- consent-db:/opt/thunder/consent/repository/database
- ./mail-infra/services/pingmailer-config/thunder/deployment.yaml:/opt/thunder/repository/conf/deployment.yaml:ro
depends_on:
thunder-db-init:
condition: service_completed_successfully
restart: "no"
thunder:
image: ghcr.io/asgardeo/thunder:0.32.0
container_name: thunder-server
depends_on:
thunder-setup:
condition: service_completed_successfully
ports:
- "8090:8090"
volumes:
- thunder-db:/opt/thunder/repository/database
- consent-db:/opt/thunder/consent/repository/database
- ./mail-infra/services/pingmailer-config/thunder/certs/server.cert:/opt/thunder/repository/resources/security/server.cert:ro
- ./mail-infra/services/pingmailer-config/thunder/certs/server.key:/opt/thunder/repository/resources/security/server.key:ro
- ./mail-infra/services/pingmailer-config/thunder/deployment.yaml:/opt/thunder/repository/conf/deployment.yaml:ro
- ./mail-infra/services/pingmailer-config/thunder/console-config.js:/opt/thunder/apps/console/config.js:ro
- ./mail-infra/services/pingmailer-config/thunder/gate-config.js:/opt/thunder/apps/gate/config.js:ro
networks:
- mail-network
restart: unless-stopped
certbot-server:
image: ghcr.io/opengovmail/pingmailer-certbot:main
container_name: certbot-server
volumes:
- ./mail-infra/services/pingmailer-config/certbot/keys/etc:/etc/letsencrypt
- ./mail-infra/services/pingmailer-config/certbot/keys/log:/var/log/letsencrypt
- ./mail-infra/services/pingmailer-config/certbot/keys/lib:/var/lib/letsencrypt
ports:
- "80:80"
- "443:443"
networks:
- mail-network
api-server:
build:
context: ./api-server
dockerfile: Dockerfile
container_name: pingmailer-api-server
restart: unless-stopped
ports:
- "8443:8443"
environment:
- PORT=8443
- CERT_FILE=/certs/live/${DOMAIN}/fullchain.pem
- KEY_FILE=/certs/live/${DOMAIN}/privkey.pem
- OAUTH2_INTROSPECT_URL=${OAUTH2_INTROSPECT_URL}
volumes:
- ${CERT_PATH}:/certs:ro
networks:
- mail-network
depends_on:
- smtp-server
volumes:
postfix-spool:
postfix-logs:
dkim-keys:
thunder-db:
consent-db:
networks:
mail-network:
name: mail-network