forked from maxking/docker-mailman
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
68 lines (63 loc) · 1.7 KB
/
docker-compose.yaml
File metadata and controls
68 lines (63 loc) · 1.7 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
version: '3.4'
services:
mailman-core:
image: blackflysolutions/mailman-core:0.2
build:
context: ./core
volumes:
- config:/opt/mailman/
stop_grace_period: 30s
depends_on:
- database
environment:
- DATABASE_URL=postgres://mailman:mailmanpass@database/mailmandb
- DATABASE_TYPE=postgres
- DATABASE_CLASS=mailman.database.postgresql.PostgreSQLDatabase
- HYPERKITTY_API_KEY=someapikey
mailman-web:
image: blackflysolutions/mailman-web:0.2
build:
context: ./web
depends_on:
- database
volumes:
- web-data:/opt/mailman-web-data
environment:
- DATABASE_TYPE=postgres
- DATABASE_URL=postgres://mailman:mailmanpass@database/mailmandb
- HYPERKITTY_API_KEY=someapikey
- SECRET_KEY=thisisaverysecretkey
- SERVE_FROM_DOMAIN=mailman.localhost
- MAILMAN_ADMIN_USER=admin
- MAILMAN_ADMIN_EMAIL=mailman@civicrm.ca
mailman-webserver:
image: blackflysolutions/mailman-webserver
build:
context: ./nginx
depends_on:
- mailman-web
volumes:
# - ./frontend/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- web-data:/opt/mailman-web-data
ports:
- "80/tcp"
labels:
mailman.domain.container: "${VSITE_MAILMAN_DOMAIN:-mailman.localhost}"
deploy:
# placement:
#constraints:
#- node.hostname=={VSITE_NODE-$THIS_NODE}
labels:
mailman.domain: "{VSITE_DOMAIN}"
database:
environment:
POSTGRES_DB: mailmandb
POSTGRES_USER: mailman
POSTGRES_PASSWORD: mailmanpass
restart: always
image: postgres:9.6-alpine
volumes:
- /opt/mailman/database:/var/lib/postgresql/data
volumes:
config:
web-data: