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: ...@@ -5,24 +5,30 @@ services:
imap: imap:
build: build:
context: dovecot/ context: dovecot/
environment:
LDAP_BASEDN: &ldap_basedn 'dc=nowhere,dc=com'
LDAP_URIS: &ldap_uris ldap://slapd
ports: ports:
- 993:993 - 993:993
environment:
LDAP_URIS: ldap://slapd
LDAP_BASEDN: 'dc=nowhere,dc=com'
volumes: volumes:
- mail:/var/mail
- _run_dovecot:/run/dovecot - _run_dovecot:/run/dovecot
- mail:/var/mail
clamd: clamd:
build: build:
cache_from:
- adarnimrod/clamd
context: clamd/ context: clamd/
image: adarnimrod/clamd
volumes: volumes:
- _run_clamav:/run/clamav - _run_clamav:/run/clamav
spamd: spamd:
build: build:
cache_from:
- adarnimrod/spamd
context: spamd/ context: spamd/
image: adarnimrod/spamd
volumes: volumes:
- _run_spamd:/run/spamd - _run_spamd:/run/spamd
- mail:/var/mail:ro - mail:/var/mail:ro
...@@ -39,7 +45,11 @@ volumes: ...@@ -39,7 +45,11 @@ volumes:
_run_clamav: _run_clamav:
_run_dovecot: _run_dovecot:
mail: mail:
labels:
snapshot: 'true'
sa_learn: sa_learn:
labels:
snapshot: 'true'
networks: networks:
default: default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment