Add dependencies amongst images
This commit is contained in:
parent
f68e63c1c8
commit
d9e77d0210
@ -275,6 +275,7 @@ in {
|
|||||||
"${cfg.smtp.ssl-directory}:/run/certs/smtp"
|
"${cfg.smtp.ssl-directory}:/run/certs/smtp"
|
||||||
];
|
];
|
||||||
ports = [ "25:25" "587:587" "465:465" "2525:2525" ];
|
ports = [ "25:25" "587:587" "465:465" "2525:2525" ];
|
||||||
|
depends_on = [ "imap" "ldap-proxy" ];
|
||||||
};
|
};
|
||||||
nixos = {
|
nixos = {
|
||||||
useSystemd = true;
|
useSystemd = true;
|
||||||
@ -335,6 +336,7 @@ in {
|
|||||||
"${hostSecrets.dovecotLdapConfig.target-file}:/run/dovecot2/conf.d/ldap.conf:ro"
|
"${hostSecrets.dovecotLdapConfig.target-file}:/run/dovecot2/conf.d/ldap.conf:ro"
|
||||||
"${cfg.imap.ssl-directory}:/run/certs/imap"
|
"${cfg.imap.ssl-directory}:/run/certs/imap"
|
||||||
];
|
];
|
||||||
|
depends_on = [ "antispam" "ldap-proxy" ];
|
||||||
};
|
};
|
||||||
nixos = {
|
nixos = {
|
||||||
useSystemd = true;
|
useSystemd = true;
|
||||||
@ -385,6 +387,7 @@ in {
|
|||||||
"external_network"
|
"external_network"
|
||||||
];
|
];
|
||||||
capabilities.SYS_ADMIN = true;
|
capabilities.SYS_ADMIN = true;
|
||||||
|
depends_on = [ "antivirus" ];
|
||||||
};
|
};
|
||||||
nixos = {
|
nixos = {
|
||||||
useSystemd = true;
|
useSystemd = true;
|
||||||
@ -457,6 +460,7 @@ in {
|
|||||||
service = {
|
service = {
|
||||||
networks = [ "internal_network" ];
|
networks = [ "internal_network" ];
|
||||||
ports = [ "${toString cfg.metrics-port}:80" ];
|
ports = [ "${toString cfg.metrics-port}:80" ];
|
||||||
|
depends_on = [ "postfix" "dovecot" "antispam" ];
|
||||||
};
|
};
|
||||||
nixos = {
|
nixos = {
|
||||||
useSystemd = true;
|
useSystemd = true;
|
||||||
@ -477,7 +481,7 @@ in {
|
|||||||
"/dovecot" = {
|
"/dovecot" = {
|
||||||
proxyPass = "http://imap:${toString metricsPort}/";
|
proxyPass = "http://imap:${toString metricsPort}/";
|
||||||
};
|
};
|
||||||
"rspamd" = {
|
"/rspamd" = {
|
||||||
proxyPass = "http://antispam:${toString metricsPort}/";
|
proxyPass = "http://antispam:${toString metricsPort}/";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user