-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
112 lines (103 loc) · 2.23 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
---
version: '3.7'
services:
db:
image: mariadb:10.8.3
command: ["--default-authentication-plugin=mysql_native_password"]
restart: always
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
- MYSQL_DATABASE=${DB_NAME:-agent}
- MYSQL_USER=${DB_USER:-agent}
- MYSQL_PASSWORD=${DB_PASSWORD}
- TZ=${TZ:-Europe/Paris}
networks:
- ajnet
amavis:
image: probesys38/agentj_amavis:${VERSION}
restart: always
env_file:
- .env
depends_on:
- db
volumes:
- amavis:/var/amavis/
networks:
ajnet:
ipv4_address: ${IPV4_NETWORK:-172.24.42}.252
app:
image: probesys38/agentj_app:${VERSION}
restart: always
env_file:
- .env
depends_on:
- amavis
- db
volumes:
- amavis:/tmp/amavis
- applogs:/var/log/agentj
- opendkim:/var/db/dkim
networks:
ajnet:
ipv4_address: ${IPV4_NETWORK:-172.24.42}.240
ports:
- ${PROXY_LISTEN_ADDR:-127.0.0.1}:${PROXY_PORT:-8090}:80
relay:
image: probesys38/agentj_relay:${VERSION}
restart: always
env_file:
- .env
networks:
ajnet:
ipv4_address: ${IPV4_NETWORK:-172.24.42}.251
smtp:
image: probesys38/agentj_smtp:${VERSION}
restart: always
env_file:
- .env
depends_on:
- db
volumes:
- postqueue:/var/spool/postfix
ports:
- ${SMTP_LISTEN_ADDR:-0.0.0.0}:${SMTP_PORT:-25}:25
networks:
ajnet:
ipv4_address: ${IPV4_NETWORK:-172.24.42}.250
syslogng:
image: probesys38/agentj_syslogng:${VERSION}
restart: always
env_file:
- .env
networks:
- ajnet
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}*
networks:
- ajnet
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
volumes:
amavis:
applogs:
db:
logs:
opendkim:
postqueue:
networks:
ajnet:
driver: bridge
ipam:
driver: default
config:
- subnet: ${IPV4_NETWORK:-172.24.42}.0/24