Skip to content

Instantly share code, notes, and snippets.

@hiagop
Created July 4, 2017 17:06
Show Gist options
  • Save hiagop/af0d309f1710eac21de951f5290e207b to your computer and use it in GitHub Desktop.
Save hiagop/af0d309f1710eac21de951f5290e207b to your computer and use it in GitHub Desktop.
version: '3.1'
services:
imap:
image: cyrus
hostname: cyrus
volumes:
- volume1
- volume2
- volume3
- volume4
secrets:
- source: key
target: my.key
uid: '0'
gid: '109'
mode: 0640
- source: cert
target: my.crt
uid: '0'
gid: '109'
mode: 0640
ports:
- 110:110
- 143:143
- 993:993
- 995:995
- 4190:4190
restart: always
networks:
- mail
logger:
image: gliderlabs/logspout
hostname: logspout
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- mail
command: syslog://log-server-ip:514
networks:
mail:
driver: bridge
secrets:
key:
file: ./my.key
cert:
file: ./my.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment