docker-compose.yml 423 B

1234567891011121314151617181920
  1. version: '2'
  2. volumes:
  3. queue:
  4. services:
  5. postfix:
  6. build: .
  7. image: fphammerle/postfix
  8. ports: ['127.0.0.1:25:25']
  9. volumes:
  10. - queue:/var/spool/postfix:rw
  11. environment:
  12. POSTMAP_PATHS: |
  13. /etc/postfix/edit-docker-compose.yml
  14. /etc/postfix/replace-me
  15. security_opt: [no-new-privileges]
  16. restart: unless-stopped
  17. # https://docs.docker.com/compose/compose-file/compose-file-v2/