studentenportal / deploy

:ship: The studentenportal.ch deployment
https://studentenportal.ch
0 stars 0 forks source link

Host: Mails mit Postfix/exim #7

Open The-Compiler opened 4 years ago

The-Compiler commented 4 years ago

Als nächster Schritt nach #2, für mich jedoch out of scope.

The-Compiler commented 4 years ago

Aus deploy-new/production.j2.yaml:

  mail-exchange:
    image: tianon/exim4

    volumes:
      - "/data/docker/mail-exchange/mailname:/etc/mailname:ro"
      - "/data/docker/mail-exchange/email-addresses:/etc/email-addresses:ro"
      - "/data/docker/mail-exchange/update-exim.conf:/etc/exim4/update-exim4.conf.conf"
      - "/data/docker/mail-exchange/30_exim4-config:/etc/exim4/conf.d/retry/30_exim4-config:ro"

    networks:
      application:
        aliases:
          - mail-server

    mode: replicated
    replicas: 1
    restart_policy:
      condition: on-failure
      delay: 1s
      max_attempts: 5
      window: 20s

    resources:
      limits:
        cpus: "0.25"
        memory: "500M"
      reservations:
        cpus: "0.125"
        memory: "250M"