2023-11-13 17:32:50 +01:00
|
|
|
services:
|
|
|
|
mailman-core:
|
|
|
|
restart: unless-stopped
|
2024-10-31 11:26:57 +01:00
|
|
|
image: maxking/mailman-core:0.5 # Use a specific version tag (tag latest is not published)
|
2023-11-13 17:32:50 +01:00
|
|
|
container_name: mailman-core
|
|
|
|
hostname: mailman-core
|
|
|
|
volumes:
|
2024-11-23 02:49:23 +01:00
|
|
|
- /opt/mailman/core:/opt/mailman/
|
2023-11-13 17:32:50 +01:00
|
|
|
stop_grace_period: 30s
|
|
|
|
links:
|
2024-11-23 02:49:23 +01:00
|
|
|
- database:database
|
2023-11-13 17:32:50 +01:00
|
|
|
depends_on:
|
2024-11-23 02:49:23 +01:00
|
|
|
- database
|
2023-11-13 17:32:50 +01:00
|
|
|
environment:
|
2024-11-23 02:49:23 +01:00
|
|
|
- DATABASE_URL=postgresql://mailman:wvQjbMRnwFuxGEPz@database/mailmandb
|
|
|
|
- DATABASE_TYPE=postgres
|
|
|
|
- DATABASE_CLASS=mailman.database.postgresql.PostgreSQLDatabase
|
|
|
|
- HYPERKITTY_API_KEY=ITfRjushI6FP0TLMnRpZxlfB2e17DN86
|
|
|
|
- MTA=postfix
|
2023-11-13 17:32:50 +01:00
|
|
|
ports:
|
2024-11-23 02:49:23 +01:00
|
|
|
- "127.0.0.1:8001:8001" # API
|
|
|
|
- "127.0.0.1:8024:8024" # LMTP - incoming emails
|
2023-11-13 17:32:50 +01:00
|
|
|
networks:
|
|
|
|
mailman:
|
|
|
|
|
|
|
|
mailman-web:
|
|
|
|
restart: unless-stopped
|
2024-10-31 11:26:57 +01:00
|
|
|
image: maxking/mailman-web:0.5 # Use a specific version tag (tag latest is not published)
|
2023-11-13 17:32:50 +01:00
|
|
|
container_name: mailman-web
|
|
|
|
hostname: mailman-web
|
|
|
|
depends_on:
|
2024-11-23 02:49:23 +01:00
|
|
|
- database
|
2023-11-13 17:32:50 +01:00
|
|
|
links:
|
2024-11-23 02:49:23 +01:00
|
|
|
- mailman-core:mailman-core
|
|
|
|
- database:database
|
2023-11-13 17:32:50 +01:00
|
|
|
volumes:
|
2024-11-23 02:49:23 +01:00
|
|
|
- /opt/mailman/web:/opt/mailman-web-data
|
2023-11-13 17:32:50 +01:00
|
|
|
environment:
|
2024-11-23 02:49:23 +01:00
|
|
|
- DATABASE_TYPE=postgres
|
|
|
|
- DATABASE_URL=postgresql://mailman:wvQjbMRnwFuxGEPz@database/mailmandb
|
|
|
|
- "DJANGO_ALLOWED_HOSTS=lists.hamburg.ccc.de,lists.c3lingo.org"
|
|
|
|
- HYPERKITTY_API_KEY=ITfRjushI6FP0TLMnRpZxlfB2e17DN86
|
|
|
|
- SERVE_FROM_DOMAIN=lists.hamburg.ccc.de
|
|
|
|
- SECRET_KEY=ugfknEYBaFVc62R1jlIjnkizQaqr7tSt
|
|
|
|
- MAILMAN_ADMIN_USER=ccchh-admin
|
|
|
|
- MAILMAN_ADMIN_EMAIL=tony@cowtest.hamburg.ccc.de
|
2023-11-13 17:32:50 +01:00
|
|
|
ports:
|
2024-11-23 02:49:23 +01:00
|
|
|
- "127.0.0.1:8000:8000" # HTTP
|
|
|
|
- "127.0.0.1:8080:8080" # uwsgi
|
2023-11-13 17:32:50 +01:00
|
|
|
networks:
|
|
|
|
mailman:
|
|
|
|
|
|
|
|
database:
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
2024-11-23 02:49:23 +01:00
|
|
|
- POSTGRES_DB=mailmandb
|
|
|
|
- POSTGRES_USER=mailman
|
|
|
|
- POSTGRES_PASSWORD=wvQjbMRnwFuxGEPz
|
2024-10-31 11:26:57 +01:00
|
|
|
image: postgres:12-alpine
|
2023-11-13 17:32:50 +01:00
|
|
|
volumes:
|
2024-11-23 02:49:23 +01:00
|
|
|
- /opt/mailman/database:/var/lib/postgresql/data
|
2023-11-13 17:32:50 +01:00
|
|
|
networks:
|
|
|
|
mailman:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
mailman:
|
|
|
|
driver: bridge
|
|
|
|
ipam:
|
|
|
|
driver: default
|
|
|
|
config:
|
2024-11-23 02:49:23 +01:00
|
|
|
-
|
|
|
|
subnet: 172.19.199.0/24
|