-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.yaml
More file actions
138 lines (127 loc) · 3.69 KB
/
test.yaml
File metadata and controls
138 lines (127 loc) · 3.69 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
134
135
136
137
138
version: "2.1"
services:
odoo:
extends:
file: common.yaml
service: odoo
environment:
PGDATABASE: test
# You may want demo data for testing
WITHOUT_DEMO: "false"
SMTP_PORT: "1025"
restart: unless-stopped
depends_on:
- cdnjs_cloudflare_proxy
- db
- fonts_googleapis_proxy
- fonts_gstatic_proxy
- google_proxy
- gravatar_proxy
- smtp
networks:
default:
inverseproxy_shared:
labels:
traefik.dbmanager.frontend.auth.basic:
"${DB_USER}:${ODOO_ADMIN_PASSWORD_BCRYPT}"
traefik.dbmanager.frontend.rule:
"Host:${DOMAIN_TEST};PathPrefix:/web/database/"
traefik.dbselector.frontend.rule:
"Host:${DOMAIN_TEST};PathPrefix:/web/database/{p:selector|list}"
traefik.longpolling.frontend.rule:
"Host:${DOMAIN_TEST};PathPrefix:/longpolling/"
traefik.websiteinfo.frontend.auth.basic:
"${DB_USER}:${ODOO_ADMIN_PASSWORD_BCRYPT}"
traefik.websiteinfo.frontend.rule:
"Host:${DOMAIN_TEST};Path:/website/info"
traefik.www.frontend.rule: "Host:${DOMAIN_TEST}"
command:
- odoo
- --workers=2
- --max-cron-threads=1
db:
extends:
file: common.yaml
service: db
restart: unless-stopped
smtp:
extends:
file: common.yaml
service: smtpfake
restart: unless-stopped
networks:
default:
inverseproxy_shared:
labels:
traefik.docker.network: "inverseproxy_shared"
traefik.enable: "true"
traefik.frontend.passHostHeader: "true"
traefik.port: "8025"
traefik.frontend.rule: "Host:${DOMAIN_TEST};PathPrefixStrip:/smtpfake/"
# Whitelist outgoing traffic for tests, reports, etc.
cdnjs_cloudflare_proxy:
image: tecnativa/whitelist
restart: unless-stopped
networks:
default:
aliases:
- cdnjs.cloudflare.com
public:
environment:
TARGET: cdnjs.cloudflare.com
PRE_RESOLVE: 1
fonts_googleapis_proxy:
image: tecnativa/whitelist
restart: unless-stopped
networks:
default:
aliases:
- fonts.googleapis.com
public:
environment:
TARGET: fonts.googleapis.com
PRE_RESOLVE: 1
fonts_gstatic_proxy:
image: tecnativa/whitelist
restart: unless-stopped
networks:
default:
aliases:
- fonts.gstatic.com
public:
environment:
TARGET: fonts.gstatic.com
PRE_RESOLVE: 1
google_proxy:
image: tecnativa/whitelist
restart: unless-stopped
networks:
default:
aliases:
- www.google.com
public:
environment:
TARGET: www.google.com
PRE_RESOLVE: 1
gravatar_proxy:
image: tecnativa/whitelist
restart: unless-stopped
networks:
default:
aliases:
- www.gravatar.com
public:
environment:
TARGET: www.gravatar.com
PRE_RESOLVE: 1
networks:
default:
internal: true
driver_opts:
encrypted: 1
inverseproxy_shared:
external: true
public:
volumes:
filestore:
db: