-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathcompose.dev.yml
More file actions
136 lines (121 loc) · 2.67 KB
/
compose.dev.yml
File metadata and controls
136 lines (121 loc) · 2.67 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
---
services:
db:
ports:
- $DB_EXPOSED_PORT:3306
# log queries to a file
# docker compose exec db tail -f /var/lib/mysql/general.log
command: [
"--general-log",
"--general-log-file=general.log",
"--default-authentication-plugin=mysql_native_password"
]
app:
build:
context: app/
dockerfile: Dockerfile.dev
args:
- UID
- GID
volumes:
- ./app/:/var/www/agentj
- ./app/var:/var/www/agentj/var
- ./app/public/files:/var/www/agentj/public/files
- ./tests/results:/tmp/test_mails
dns: 172.28.2.5
networks:
default:
ipv4_address: 172.28.2.1
working_dir: /var/www/agentj
worker:
build:
context: app/
dockerfile: Dockerfile.dev
args:
- UID
- GID
volumes:
- ./app/:/var/www/agentj
- ./app/var:/var/www/agentj/var
- ./app/public/files:/var/www/agentj/public/files
watcher:
image: node:18-alpine
user: ${UID}:${GID}
working_dir: /app
volumes:
- ./app:/app
restart: unless-stopped
command: /bin/sh -c "yarn install && yarn watch"
senderverifmilter:
build:
context: senderverifmilter
args:
- UID
- GID
volumes:
- ./senderverifmilter/:/app
command: bash -c "pip install --user -r requirements.txt ; python -u main.py"
mailpit:
image: axllent/mailpit:v1.22
ports:
- $MAILPIT_WEB_PORT:8025
environment:
- TZ
- MP_DATABASE=/data/mailpit.db
volumes:
- mailpit_data:/data
networks:
default:
aliases:
- mailpit.test
smtptest:
build:
context: tests/
args:
- UID
- GID
env_file:
- .env
volumes:
- ./tests/results:/var/mail/
networks:
default:
ipv4_address: 172.28.2.5
aliases:
- smtp.test
ldap:
image: bitnamilegacy/openldap:2
ports:
- "1389:1389"
- "1636:1636"
environment:
- LDAP_ROOT=dc=example,dc=com
- LDAP_ADMIN_USERNAME=admin
- LDAP_ADMIN_PASSWORD=secret
- BITNAMI_DEBUG=true
volumes:
- ./ldap/tree.ldif:/ldifs/tree.ldif:z
- ./ldap/schemas/custom.ldif:/schema/custom.ldif:z
opendkim:
volumes:
- ./tests/opendkim.test.conf:/etc/opendkim.test.conf
- ./tests/stubdns:/srv/stubdns
smtp:
dns: 172.28.2.5
outsmtp:
dns: 172.28.2.5
amavis:
dns: 172.28.2.5
outamavis:
dns: 172.28.2.5
clamav:
dns: 172.28.2.5
networks:
default:
ipam:
config:
- subnet: 172.28.0.0/16
ip_range: 172.28.1.0/24
gateway: 172.28.1.254
volumes:
mailpit_data: