-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
99 lines (92 loc) · 2.63 KB
/
Copy pathdocker-compose.yml
File metadata and controls
99 lines (92 loc) · 2.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
services:
postgres:
image: postgres:15-alpine
environment:
POSTGRES_USER: gather
POSTGRES_PASSWORD: gather
POSTGRES_DB: gather_development
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- gather-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U gather"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
volumes:
- redis_data:/data
networks:
- gather-network
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.28
environment:
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms200m -Xmx200m"
- xpack.security.enabled=false
volumes:
- elasticsearch_data:/usr/share/elasticsearch/data
networks:
- gather-network
healthcheck:
test: ["CMD-SHELL", "curl -s http://localhost:9200/_cluster/health | grep -vq '\"status\":\"red\"'"]
interval: 10s
timeout: 10s
retries: 10
mailcatcher:
image: schickling/mailcatcher
networks:
- gather-network
mailman-core:
image: maxking/mailman-core:0.4
platform: linux/amd64
volumes:
- mailman_core_data:/opt/mailman
environment:
- HYPERKITTY_API_KEY=hyperkittyapikey
- MTA=null
- MAILMAN_REST_API_PASS=restpass
- MAILMAN_REST_USER=restadmin
networks:
- gather-network
mailman-web:
image: maxking/mailman-web:0.4
platform: linux/amd64
volumes:
- mailman_web_data:/opt/mailman-web-data
- ./docker/mailman-web-uwsgi.ini:/opt/mailman-web/uwsgi.ini
- ./docker/mailman-web-settings-local.py:/opt/mailman-web-data/settings_local.py
environment:
- HYPERKITTY_API_KEY=hyperkittyapikey
- DATABASE_TYPE=sqlite
- DATABASE_URL=sqlite:////opt/mailman-web-data/mailmanweb.db
- MAILMAN_ADMIN_USER=admin
- MAILMAN_ADMIN_EMAIL=admin@example.com
- SECRET_KEY=django-insecure-gatherdevelopment
- SERVE_FROM_DOMAIN=localhost
- MAILMAN_REST_API_URL=http://mailman-core:8001
- MAILMAN_REST_API_USER=restadmin
- MAILMAN_REST_API_PASS=restpass
# gethostbyname() is evaluated eagerly at import time; use localhost to avoid needing mailman-core up first
- MAILMAN_HOSTNAME=localhost
depends_on:
- mailman-core
networks:
- gather-network
volumes:
postgres_data:
redis_data:
elasticsearch_data:
mailman_core_data:
mailman_web_data:
networks:
gather-network:
name: ${COMPOSE_PROJECT_NAME:-gather}-network
external: true