Skip to content
Snippets Groups Projects
Commit 50744359 authored by nimrod's avatar nimrod
Browse files

Docker Compose improvements.

- Sort keys in docker-compose.yml.
- Use Docker Hub images for caching and name the images the same were
applicable.
- Mark the volumes for backup.
parent efb10bbc
Branches
No related tags found
No related merge requests found
......@@ -5,24 +5,30 @@ services:
imap:
build:
context: dovecot/
environment:
LDAP_BASEDN: &ldap_basedn 'dc=nowhere,dc=com'
LDAP_URIS: &ldap_uris ldap://slapd
ports:
- 993:993
environment:
LDAP_URIS: ldap://slapd
LDAP_BASEDN: 'dc=nowhere,dc=com'
volumes:
- mail:/var/mail
- _run_dovecot:/run/dovecot
- mail:/var/mail
clamd:
build:
cache_from:
- adarnimrod/clamd
context: clamd/
image: adarnimrod/clamd
volumes:
- _run_clamav:/run/clamav
spamd:
build:
cache_from:
- adarnimrod/spamd
context: spamd/
image: adarnimrod/spamd
volumes:
- _run_spamd:/run/spamd
- mail:/var/mail:ro
......@@ -39,7 +45,11 @@ volumes:
_run_clamav:
_run_dovecot:
mail:
labels:
snapshot: 'true'
sa_learn:
labels:
snapshot: 'true'
networks:
default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment