-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.yaml
More file actions
133 lines (126 loc) · 4.05 KB
/
Copy pathcommon.yaml
File metadata and controls
133 lines (126 loc) · 4.05 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
services:
odoo:
image: ghcr.io/pyxiris/baker:19.0
build:
context: ./odoo
args:
DB_VERSION: "18"
ODOO_VERSION: "19.0"
UID: "${UID:-1000}"
GID: "${GID:-1000}"
environment:
EMAIL_FROM: "notifications@bakerlumber.online"
PGDATABASE: &dbname prod
PGUSER: &dbuser "odoo"
PROXY_MODE: "true"
tty: true
volumes:
- filestore:/var/lib/odoo
labels:
traefik.backend.buffering.retryExpression: IsNetworkError() && Attempts() < 5
traefik.docker.network: "inverseproxy_shared"
traefik.frontend.passHostHeader: "true"
traefik.port: "8069"
db:
image: ghcr.io/tecnativa/postgres-autoconf:18-alpine
shm_size: 4gb
environment:
POSTGRES_DB: *dbname
POSTGRES_USER: *dbuser
PGDATA: "/var/lib/postgresql/data"
CONF_EXTRA: |
work_mem = 512MB
volumes:
- db:/var/lib/postgresql/data
smtpfake:
image: docker.io/axllent/mailpit
environment:
MP_SMTP_RELAY_ALL: "true"
MP_SMTP_RELAY_ALLOW_INSECURE: "true"
MP_SMTP_RELAY_PRESERVE_MESSAGE_IDS: "true"
mailserver_fake:
image: ghcr.io/docker-mailserver/docker-mailserver:latest
hostname: mailserver.bakerlumber.online
environment:
PERMIT_DOCKER: connected-networks
POSTFIX_INET_PROTOCOLS: ipv4
ENABLE_AMAVIS: 0
ENABLE_OPENDKIM: 0
ENABLE_OPENDMARC: 0
ENABLE_POLICYD_SPF: 0
ENABLE_SRS: 0
ENABLE_QUOTAS: 0
MAILGATE_SMTP_PORT: "13525"
ODOO_RECEIVING_DOMAINS: bakerlumber.online
entrypoint:
- /bin/bash
- -c
- |
set -euo pipefail
mkdir -p /tmp/docker-mailserver
echo "$${MAILBOX_USER}@$${MAILBOX_DOMAIN}|{PLAIN}$${ADMIN_PASSWORD}" \
> /tmp/docker-mailserver/postfix-accounts.cf
exec /usr/bin/dumb-init -- supervisord -c /etc/supervisor/supervisord.conf
volumes:
- ./mail-testing-config/docker-mailserver/user-patches.sh:/tmp/docker-mailserver/user-patches.sh:ro
- mailgate:/tmp/mailgate:ro,z
email_client_fake:
image: roundcube/roundcubemail
environment:
ROUNDCUBEMAIL_DB_TYPE: sqlite
ROUNDCUBEMAIL_COMPOSER_PLUGINS: "texxasrulez/persistent_login"
ROUNDCUBEMAIL_PLUGINS: "show_additional_headers,persistent_login,autocreate_identity"
depends_on:
- mailserver
volumes:
- ./mail-testing-config/roundcube/config/roundcube_user_settings.inc.php:/var/roundcube/config/config.inc.php:ro
- ./mail-testing-config/roundcube/plugins/autocreate_identity:/var/www/html/plugins/autocreate_identity
- roundcube:/var/www/html:rw
- roundcube_db:/var/roundcube/db:rw
smtpreal:
image: ghcr.io/docker-mailserver/docker-mailserver:latest
hostname: "smtp.bakerlumber.online"
stop_grace_period: 1m
volumes:
- mailconfig:/tmp/docker-mailserver
- maildata:/var/mail
- maillogs:/var/log/mail
- maillogssupervisord:/var/log/supervisor
- mailstate:/var/mail-state
- mailgate:/tmp/mailgate:ro,z
cap_add:
- SYS_PTRACE
environment:
DEFAULT_RELAY_HOST: "[mail.smtp2go.com]:2525"
DMS_DEBUG: 0
ENABLE_SRS: 1
ONE_DIR: 1
PERMIT_DOCKER: connected-networks
POSTFIX_INET_PROTOCOLS: ipv4
POSTFIX_MESSAGE_SIZE_LIMIT: 52428800 # 50 MiB
RELAY_HOST: "mail.smtp2go.com"
RELAY_PORT: "2525"
RELAY_USER: "bakerlumber.online"
SMTP_ONLY: 1
SRS_DOMAINNAME: "bakerlumber.online"
SRS_EXCLUDE_DOMAINS: "bakerlumber.online"
SRS_SENDER_CLASSES: envelope_sender,header_sender
backup:
image: ghcr.io/tecnativa/docker-duplicity-postgres-s3:latest
hostname: backup.bakerlumber.online
init: true
environment:
DB_VERSION: "18"
DBS_TO_INCLUDE: "^prod"
DST: "boto3+s3://baker-backup"
EMAIL_FROM: "backups@bakerlumber.online"
EMAIL_TO: "backups@bakerlumber.online"
PGDATABASE: *dbname
PGUSER: *dbuser
SMTP_HOST: smtplocal
TZ: "America/Detroit"
volumes:
- backup_cache:/root
- filestore:/mnt/backup/src/odoo
volumes:
mailgate: