2019-03-21 08:41:45 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: run mailman server containers
|
2021-02-15 20:59:20 +00:00
|
|
|
docker_compose:
|
|
|
|
project_name: "mailman"
|
2019-03-21 08:41:45 +00:00
|
|
|
definition:
|
|
|
|
version: '2'
|
|
|
|
|
|
|
|
services:
|
2021-02-15 20:59:20 +00:00
|
|
|
mailman-web:
|
|
|
|
image: maxking/mailman-web:0.3.5
|
|
|
|
depends_on:
|
|
|
|
- database
|
|
|
|
links:
|
|
|
|
- database:database
|
|
|
|
volumes:
|
|
|
|
- /opt/mailman/web:/opt/mailman-web-data
|
|
|
|
environment:
|
|
|
|
DATABASE_TYPE: "postgres"
|
|
|
|
DATABASE_URL: "postgres://mailman:{{ mailman_secrets.postgres_password }}@database/mailmandb"
|
|
|
|
HYPERKITTY_API_KEY: "{{ mailman_secrets.hyperkitty_api_key }}"
|
|
|
|
SERVE_FROM_DOMAIN: "lists.data.coop"
|
|
|
|
MAILMAN_ADMIN_USER: "valberg"
|
|
|
|
MAILMAN_ADMIN_EMAIL: "valberg@orn.li"
|
|
|
|
SECRET_KEY: "{{ mailman_secrets.django_secret_key }}"
|
|
|
|
VIRTUAL_HOST: "lists.data.coop"
|
|
|
|
VIRTUAL_PORT: 8000
|
|
|
|
LETSENCRYPT_HOST: "lists.data.coop"
|
|
|
|
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
|
|
|
|
networks:
|
|
|
|
- "mailman"
|
|
|
|
- "postfix"
|
|
|
|
- "external_services"
|
|
|
|
|
2019-03-21 08:41:45 +00:00
|
|
|
mailman-core:
|
2021-02-15 20:59:20 +00:00
|
|
|
image: maxking/mailman-core:0.3
|
2019-03-21 08:41:45 +00:00
|
|
|
volumes:
|
|
|
|
- /opt/mailman/core:/opt/mailman/
|
|
|
|
stop_grace_period: 30s
|
|
|
|
links:
|
2021-02-15 20:59:20 +00:00
|
|
|
- mailman-web:mailmain-web
|
2019-03-21 08:41:45 +00:00
|
|
|
- database:database
|
|
|
|
depends_on:
|
|
|
|
- database
|
|
|
|
environment:
|
2021-02-15 20:59:20 +00:00
|
|
|
DATABASE_URL: "postgres://mailman:{{ mailman_secrets.postgres_password }}@database/mailmandb"
|
|
|
|
DATABASE_TYPE: "postgres"
|
|
|
|
DATABASE_CLASS: "mailman.database.postgresql.PostgreSQLDatabase"
|
|
|
|
HYPERKITTY_API_KEY: "{{ mailman_secrets.hyperkitty_api_key }}"
|
2019-03-21 08:41:45 +00:00
|
|
|
networks:
|
2021-02-15 20:59:20 +00:00
|
|
|
- "mailman"
|
|
|
|
- "postfix"
|
|
|
|
- "external_services"
|
2019-03-21 08:41:45 +00:00
|
|
|
|
|
|
|
database:
|
|
|
|
environment:
|
|
|
|
POSTGRES_DB: mailmandb
|
|
|
|
POSTGRES_USER: mailman
|
2021-02-15 20:59:20 +00:00
|
|
|
POSTGRES_PASSWORD: "{{ mailman_secrets.postgres_password }}"
|
2019-03-21 08:41:45 +00:00
|
|
|
restart: always
|
2021-02-15 20:59:20 +00:00
|
|
|
image: postgres:13
|
2019-03-21 08:41:45 +00:00
|
|
|
volumes:
|
|
|
|
- /opt/mailman/database:/var/lib/postgresql/data
|
|
|
|
networks:
|
2021-02-15 20:59:20 +00:00
|
|
|
- "mailman"
|
2019-03-21 08:41:45 +00:00
|
|
|
|
|
|
|
networks:
|
2021-02-15 20:59:20 +00:00
|
|
|
mailman:
|
|
|
|
postfix:
|
|
|
|
external: true
|
|
|
|
external_services:
|
|
|
|
external: true
|