-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
163 lines (150 loc) · 3.34 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
---
services:
db:
image: mariadb:10.8.3
command: ["--default-authentication-plugin=mysql_native_password"]
restart: always
volumes:
- db:/var/lib/mysql
- ./mariadb-entrypoint-initdb.d/:/docker-entrypoint-initdb.d/
environment:
- MYSQL_ROOT_PASSWORD=$DB_ROOT_PASSWORD
- MYSQL_DATABASE=$DB_NAME
- MYSQL_USER=$DB_USER
- MYSQL_PASSWORD=$DB_PASSWORD
- TZ
- DB_OPENDKIM_PASSWORD
amavis:
image: probesys38/agentj_amavis:$VERSION
build:
context: amavis/.
restart: always
environment:
- AMAVIS_CONF=amavisd.conf
env_file:
- .env
depends_on:
- db
volumes:
- amavis_in:/var/lib/amavis/
outamavis:
image: probesys38/agentj_amavis:$VERSION
build:
context: amavis/.
restart: always
environment:
- AMAVIS_CONF=amavisd_out.conf
env_file:
- .env
depends_on:
- db
volumes:
- amavis_out:/var/lib/amavis/
app:
image: probesys38/agentj_app:$VERSION
build:
context: ./app
restart: always
env_file:
- .env
depends_on:
- amavis
- outamavis
- db
volumes:
- applogs:/var/log/
ports:
- $PROXY_LISTEN_ADDR:$PROXY_PORT:80
relay:
image: probesys38/agentj_smtp:${VERSION}
build:
context: ./smtp/.
restart: always
environment:
- SMTP_TYPE=relay
env_file:
- .env
command: [ "/usr/sbin/postfix", "-c", "/etc/conf/relay/postfix", "start-fg" ]
smtp:
image: probesys38/agentj_smtp:$VERSION
build:
context: ./smtp/.
restart: always
environment:
- SMTP_TYPE=in
env_file:
- .env
depends_on:
- db
- opendkim
volumes:
- postqueue:/var/spool/postfix
ports:
- $SMTP_LISTEN_ADDR:$SMTP_PORT:25
command: [ "/usr/sbin/postfix", "-c", "/etc/conf/in/postfix", "start-fg" ]
outsmtp:
image: probesys38/agentj_smtp:$VERSION
build:
context: ./smtp/.
restart: always
environment:
- SMTP_TYPE=out
env_file:
- .env
depends_on:
- db
- opendkim
volumes:
- outpostqueue:/var/spool/postfix
ports:
- $SMTP_LISTEN_ADDR:$SMTP_OUT_PORT:25
command: [ "/usr/sbin/postfix", "-c", "/etc/conf/out/postfix", "start-fg" ]
opendkim:
image: probesys38/agentj_opendkim:$VERSION
build:
context: ./opendkim/
restart: unless-stopped
environment:
- DB_USER=opendkim
- DOMAIN
- DB_HOST
- DB_NAME
- DB_OPENDKIM_PASSWORD
depends_on:
- db
policyd-rate-limit:
image: probesys38/agentj_policyd-rate-limit:$VERSION
build:
context: ./policyd-rate-limit
env_file:
- .env
restart: unless-stopped
volumes:
- ./policyd-rate-limit/policyd-rate-limit.yaml:/policyd-rate-limit.yaml
syslogng:
image: probesys38/agentj_syslogng:$VERSION
build:
context: ./syslogng
restart: always
env_file:
- .env
volumes:
- logs:/var/log/syslogng
logspout:
image: gliderlabs/logspout
restart: always
environment:
- TZ=${TZ}
depends_on:
- syslogng
command: syslog+udp://syslogng:514?filter.name=${COMPOSE_PROJECT_NAME}*
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
volumes:
amavis_out:
amavis_in:
applogs:
db:
logs:
postqueue:
outpostqueue: