-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.yaml
136 lines (129 loc) · 6.57 KB
/
test.yaml
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
134
135
136
version: "2.4"
services:
odoo:
extends:
file: common.yaml
service: odoo
env_file:
- .docker/odoo.env
- .docker/db-access.env
environment:
DOODBA_ENVIRONMENT: "${DOODBA_ENVIRONMENT-test}"
# To install demo data export DOODBA_WITHOUT_DEMO=false
WITHOUT_DEMO: "${DOODBA_WITHOUT_DEMO-all}"
SMTP_PORT: "1025"
SMTP_SERVER: smtplocal
restart: unless-stopped
hostname: "test.example.com"
depends_on:
- smtp
networks:
default:
globalwhitelist_shared:
inverseproxy_shared:
labels:
doodba.domain.main: "test.example.com"
traefik.enable: "true"
traefik.domain: "test.example.com"
traefik.forbiddenCrawlers-0.frontend.headers.customResponseHeaders:
"X-Robots-Tag:noindex, nofollow"
traefik.forbiddenCrawlers-0.frontend.rule: Host:test.example.com;Path:/{anything:.*}
traefik.longpolling-0.frontend.rule: Host:test.example.com;Path:/websocket,/websocket/{anything:.*}
traefik.longpolling-0.port: 8072
traefik.http.services.myproject-odoo-18-0-test-main.loadbalancer.server.port: 8069
traefik.http.services.myproject-odoo-18-0-test-longpolling.loadbalancer.server.port: 8072
traefik.http.routers.myproject-odoo-18-0-test-longpolling-0.rule:
Host(`test.example.com`) && Path(`/websocket`)
traefik.http.routers.myproject-odoo-18-0-test-longpolling-0.service: myproject-odoo-18-0-test-longpolling
traefik.http.routers.myproject-odoo-18-0-test-longpolling-0.middlewares:
myproject-odoo-18-0-test-addSTS, myproject-odoo-18-0-test-forceSecure
traefik.http.routers.myproject-odoo-18-0-test-longpolling-secure-0.rule:
Host(`test.example.com`) && Path(`/websocket`)
traefik.http.routers.myproject-odoo-18-0-test-longpolling-secure-0.service: myproject-odoo-18-0-test-longpolling
traefik.http.routers.myproject-odoo-18-0-test-longpolling-secure-0.middlewares:
myproject-odoo-18-0-test-addSTS, myproject-odoo-18-0-test-forceSecure
traefik.http.routers.myproject-odoo-18-0-test-longpolling-secure-0.tls: "true"
traefik.http.routers.myproject-odoo-18-0-test-longpolling-secure-0.tls.certResolver: letsencrypt
traefik.http.routers.myproject-odoo-18-0-test-forbiddenCrawlers-0.rule:
Host(`test.example.com`) && (PathPrefix(`/`))
traefik.http.routers.myproject-odoo-18-0-test-forbiddenCrawlers-0.service: myproject-odoo-18-0-test-main
traefik.http.routers.myproject-odoo-18-0-test-forbiddenCrawlers-0.middlewares:
myproject-odoo-18-0-test-addSTS, myproject-odoo-18-0-test-buffering,
myproject-odoo-18-0-test-compress, myproject-odoo-18-0-test-forbid-crawlers,
myproject-odoo-18-0-test-forceSecure
traefik.http.routers.myproject-odoo-18-0-test-forbiddenCrawlers-secure-0.rule:
Host(`test.example.com`) && (PathPrefix(`/`))
traefik.http.routers.myproject-odoo-18-0-test-forbiddenCrawlers-secure-0.service: myproject-odoo-18-0-test-main
traefik.http.routers.myproject-odoo-18-0-test-forbiddenCrawlers-secure-0.middlewares:
myproject-odoo-18-0-test-addSTS, myproject-odoo-18-0-test-buffering,
myproject-odoo-18-0-test-compress, myproject-odoo-18-0-test-forbid-crawlers,
myproject-odoo-18-0-test-forceSecure
traefik.http.routers.myproject-odoo-18-0-test-forbiddenCrawlers-secure-0.tls: "true"
traefik.http.routers.myproject-odoo-18-0-test-forbiddenCrawlers-secure-0.tls.certResolver: letsencrypt
command:
- odoo
- --workers=2
- --max-cron-threads=1
smtp:
extends:
file: common.yaml
service: smtpfake
restart: unless-stopped
networks:
default:
aliases:
- smtplocal
inverseproxy_shared:
labels:
doodba.domain.main: "test.example.com"
traefik.docker.network: "inverseproxy_shared"
traefik.enable: "true"
traefik.frontend.passHostHeader: "true"
traefik.mailhog-0.frontend.rule: Host:test.example.com;PathPrefixStrip:/smtpfake/
traefik.mailhog-0.port: 8025
# Mailhog service
traefik.http.middlewares.myproject-odoo-18-0-test-mailhog-stripprefix.stripPrefix.prefixes: /smtpfake/
traefik.http.services.myproject-odoo-18-0-test-mailhog.loadbalancer.server.port: 8025
traefik.http.middlewares.myproject-odoo-18-0-test-buffering.buffering.retryExpression:
IsNetworkError() && Attempts() < 5
traefik.http.middlewares.myproject-odoo-18-0-test-compress.compress: "true"
traefik.http.middlewares.myproject-odoo-18-0-test-forbid-crawlers.headers.customResponseHeaders.X-Robots-Tag:
"noindex, nofollow"
traefik.http.middlewares.myproject-odoo-18-0-test-addSTS.headers.forceSTSHeader: "true"
traefik.http.middlewares.myproject-odoo-18-0-test-forceSecure.redirectScheme.scheme: https
traefik.http.middlewares.myproject-odoo-18-0-test-forceSecure.redirectScheme.permanent: "true"
traefik.http.routers.myproject-odoo-18-0-test-mailhog-0.rule:
Host(`test.example.com`) && PathPrefix(`/smtpfake/`)
traefik.http.routers.myproject-odoo-18-0-test-mailhog-0.service: myproject-odoo-18-0-test-mailhog
traefik.http.routers.myproject-odoo-18-0-test-mailhog-0.middlewares:
myproject-odoo-18-0-test-addSTS, myproject-odoo-18-0-test-buffering,
myproject-odoo-18-0-test-compress, myproject-odoo-18-0-test-forbid-crawlers,
myproject-odoo-18-0-test-forceSecure,
myproject-odoo-18-0-test-mailhog-stripprefix
traefik.http.routers.myproject-odoo-18-0-test-mailhog-secure-0.rule:
Host(`test.example.com`) && PathPrefix(`/smtpfake/`)
traefik.http.routers.myproject-odoo-18-0-test-mailhog-secure-0.service: myproject-odoo-18-0-test-mailhog
traefik.http.routers.myproject-odoo-18-0-test-mailhog-secure-0.middlewares:
myproject-odoo-18-0-test-addSTS, myproject-odoo-18-0-test-buffering,
myproject-odoo-18-0-test-compress, myproject-odoo-18-0-test-forbid-crawlers,
myproject-odoo-18-0-test-forceSecure,
myproject-odoo-18-0-test-mailhog-stripprefix
traefik.http.routers.myproject-odoo-18-0-test-mailhog-secure-0.tls: "true"
traefik.http.routers.myproject-odoo-18-0-test-mailhog-secure-0.tls.certResolver: letsencrypt
volumes:
- "smtpconf:/etc/mailhog:ro,z"
entrypoint: [sh, -c]
command:
- test -r /etc/mailhog/auth && export MH_AUTH_FILE=/etc/mailhog/auth; exec MailHog
networks:
default:
internal: ${DOODBA_NETWORK_INTERNAL-true}
driver_opts:
encrypted: 1
globalwhitelist_shared:
external: true
inverseproxy_shared:
external: true
volumes:
filestore:
smtpconf: